1 /*-------------------------------------------------------------------------
4 * definition of the system "language" relation (pg_language)
5 * along with the relation's initial contents.
8 * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
11 * src/include/catalog/pg_language.h
14 * the genbki.pl 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 laninline; /* Optional anonymous-block handler function */
39 Oid lanvalidator; /* Optional validation function */
41 #ifdef CATALOG_VARLEN /* variable-length fields start here */
42 aclitem lanacl[1]; /* Access privileges */
44 } FormData_pg_language;
47 * Form_pg_language corresponds to a pointer to a tuple with
48 * the format of pg_language relation.
51 typedef FormData_pg_language *Form_pg_language;
54 * compiler constants for pg_language
57 #define Natts_pg_language 8
58 #define Anum_pg_language_lanname 1
59 #define Anum_pg_language_lanowner 2
60 #define Anum_pg_language_lanispl 3
61 #define Anum_pg_language_lanpltrusted 4
62 #define Anum_pg_language_lanplcallfoid 5
63 #define Anum_pg_language_laninline 6
64 #define Anum_pg_language_lanvalidator 7
65 #define Anum_pg_language_lanacl 8
68 * initial contents of pg_language
72 DATA(insert OID = 12 ( "internal" PGUID f f 0 0 2246 _null_ ));
73 DESCR("built-in functions");
74 #define INTERNALlanguageId 12
75 DATA(insert OID = 13 ( "c" PGUID f f 0 0 2247 _null_ ));
76 DESCR("dynamically-loaded C functions");
77 #define ClanguageId 13
78 DATA(insert OID = 14 ( "sql" PGUID f t 0 0 2248 _null_ ));
79 DESCR("SQL-language functions");
80 #define SQLlanguageId 14
82 #endif /* PG_LANGUAGE_H */