1996-08-28 03:59:28 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* pg_language.h
|
1997-09-07 07:04:48 +02:00
|
|
|
* definition of the system "language" relation (pg_language)
|
|
|
|
* along with the relation's initial contents.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
2000-05-28 19:56:29 +02:00
|
|
|
* $Id: pg_language.h,v 1.11 2000/05/28 17:56:16 tgl Exp $
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
* NOTES
|
1997-09-07 07:04:48 +02:00
|
|
|
* the genbki.sh script reads this file and generates .bki
|
|
|
|
* information from the DATA() statements.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_LANGUAGE_H
|
|
|
|
#define PG_LANGUAGE_H
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* postgres.h contains the system type definintions and the
|
|
|
|
* CATALOG(), BOOTSTRAP and DATA() sugar words so this file
|
|
|
|
* can be read by both genbki.sh and the C compiler.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_language definition. cpp turns this into
|
|
|
|
* typedef struct FormData_pg_language
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
*/
|
|
|
|
CATALOG(pg_language)
|
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
NameData lanname;
|
1997-10-28 16:11:45 +01:00
|
|
|
bool lanispl; /* Is a procedural language */
|
|
|
|
bool lanpltrusted; /* PL is trusted */
|
|
|
|
Oid lanplcallfoid; /* Call handler for PL */
|
1997-09-08 04:41:22 +02:00
|
|
|
text lancompiler; /* VARIABLE LENGTH FIELD */
|
1996-08-28 03:59:28 +02:00
|
|
|
} FormData_pg_language;
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* Form_pg_language corresponds to a pointer to a tuple with
|
|
|
|
* the format of pg_language relation.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef FormData_pg_language *Form_pg_language;
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* compiler constants for pg_language
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-10-28 16:11:45 +01:00
|
|
|
#define Natts_pg_language 5
|
1997-09-07 07:04:48 +02:00
|
|
|
#define Anum_pg_language_lanname 1
|
1997-10-28 16:11:45 +01:00
|
|
|
#define Anum_pg_language_lanispl 2
|
|
|
|
#define Anum_pg_language_lanpltrusted 3
|
|
|
|
#define Anum_pg_language_lanplcallfoid 4
|
|
|
|
#define Anum_pg_language_lancompiler 5
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* initial contents of pg_language
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 11 ( internal f f 0 "n/a" ));
|
|
|
|
DESCR("old-style built-in functions");
|
1996-08-28 03:59:28 +02:00
|
|
|
#define INTERNALlanguageId 11
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 12 ( newinternal f f 0 "n/a" ));
|
|
|
|
DESCR("new-style built-in functions");
|
|
|
|
#define NEWINTERNALlanguageId 12
|
|
|
|
DATA(insert OID = 13 ( "C" f f 0 "/bin/cc" ));
|
|
|
|
DESCR("Dynamically-loaded old-style C functions");
|
1996-08-28 03:59:28 +02:00
|
|
|
#define ClanguageId 13
|
2000-05-28 19:56:29 +02:00
|
|
|
DATA(insert OID = 10 ( "newC" f f 0 "/bin/cc" ));
|
|
|
|
DESCR("Dynamically-loaded new-style C functions");
|
|
|
|
#define NEWClanguageId 10
|
|
|
|
DATA(insert OID = 14 ( "sql" f f 0 "postgres"));
|
|
|
|
DESCR("SQL-language functions");
|
1996-08-28 03:59:28 +02:00
|
|
|
#define SQLlanguageId 14
|
|
|
|
|
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* PG_LANGUAGE_H */
|