1 /*-------------------------------------------------------------------------
4 * definition of the system "language" relation (pg_language)
5 * along with the relation's initial contents.
8 * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
11 * $Id: pg_language.h,v 1.15 2001/11/05 17:46:32 momjian Exp $
14 * the genbki.sh script reads this file and generates .bki
15 * information from the DATA() statements.
17 *-------------------------------------------------------------------------
23 * postgres.h contains the system type definintions and the
24 * CATALOG(), BOOTSTRAP and DATA() sugar words so this file
25 * can be read by both genbki.sh and the C compiler.
30 * pg_language definition. cpp turns this into
31 * typedef struct FormData_pg_language
37 bool lanispl; /* Is a procedural language */
38 bool lanpltrusted; /* PL is trusted */
39 Oid lanplcallfoid; /* Call handler for PL */
40 text lancompiler; /* VARIABLE LENGTH FIELD */
41 } FormData_pg_language;
44 * Form_pg_language corresponds to a pointer to a tuple with
45 * the format of pg_language relation.
48 typedef FormData_pg_language *Form_pg_language;
51 * compiler constants for pg_language
54 #define Natts_pg_language 5
55 #define Anum_pg_language_lanname 1
56 #define Anum_pg_language_lanispl 2
57 #define Anum_pg_language_lanpltrusted 3
58 #define Anum_pg_language_lanplcallfoid 4
59 #define Anum_pg_language_lancompiler 5
62 * initial contents of pg_language
66 DATA(insert OID = 12 ( internal f f 0 "n/a" ));
67 DESCR("Built-in functions");
68 #define INTERNALlanguageId 12
69 DATA(insert OID = 13 ( "C" f f 0 "/bin/cc" ));
70 DESCR("Dynamically-loaded C functions");
71 #define ClanguageId 13
72 DATA(insert OID = 14 ( "sql" f f 0 "postgres"));
73 DESCR("SQL-language functions");
74 #define SQLlanguageId 14
76 #endif /* PG_LANGUAGE_H */