1 /*-------------------------------------------------------------------------
4 * definition of the system "language" relation (pg_language)
5 * along with the relation's initial contents.
8 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
14 * the genbki.sh script reads this file and generates .bki
15 * information from the DATA() statements.
17 *-------------------------------------------------------------------------
22 #include "catalog/genbki.h"
25 * pg_language definition. cpp turns this into
26 * typedef struct FormData_pg_language
29 #define LanguageRelationId 2612
31 CATALOG(pg_language
,2612)
33 NameData lanname
; /* Language name */
34 Oid lanowner
; /* Language's owner */
35 bool lanispl
; /* Is a procedural language */
36 bool lanpltrusted
; /* PL is trusted */
37 Oid lanplcallfoid
; /* Call handler for PL */
38 Oid lanvalidator
; /* Optional validation function */
39 aclitem lanacl
[1]; /* Access privileges */
40 } FormData_pg_language
;
43 * Form_pg_language corresponds to a pointer to a tuple with
44 * the format of pg_language relation.
47 typedef FormData_pg_language
*Form_pg_language
;
50 * compiler constants for pg_language
53 #define Natts_pg_language 7
54 #define Anum_pg_language_lanname 1
55 #define Anum_pg_language_lanowner 2
56 #define Anum_pg_language_lanispl 3
57 #define Anum_pg_language_lanpltrusted 4
58 #define Anum_pg_language_lanplcallfoid 5
59 #define Anum_pg_language_lanvalidator 6
60 #define Anum_pg_language_lanacl 7
63 * initial contents of pg_language
67 DATA(insert OID
= 12 ( "internal" PGUID f f
0 2246 _null_
));
68 DESCR("built-in functions");
69 #define INTERNALlanguageId 12
70 DATA(insert OID
= 13 ( "c" PGUID f f
0 2247 _null_
));
71 DESCR("dynamically-loaded C functions");
72 #define ClanguageId 13
73 DATA(insert OID
= 14 ( "sql" PGUID f t
0 2248 _null_
));
74 DESCR("SQL-language functions");
75 #define SQLlanguageId 14
77 #endif /* PG_LANGUAGE_H */