PostgreSQL Source Code  git master
pg_language.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_language.h
4  * definition of the system "language" relation (pg_language)
5  * along with the relation's initial contents.
6  *
7  *
8  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
9  * Portions Copyright (c) 1994, Regents of the University of California
10  *
11  * src/include/catalog/pg_language.h
12  *
13  * NOTES
14  * the genbki.pl script reads this file and generates .bki
15  * information from the DATA() statements.
16  *
17  *-------------------------------------------------------------------------
18  */
19 #ifndef PG_LANGUAGE_H
20 #define PG_LANGUAGE_H
21 
22 #include "catalog/genbki.h"
23 
24 /* ----------------
25  * pg_language definition. cpp turns this into
26  * typedef struct FormData_pg_language
27  * ----------------
28  */
29 #define LanguageRelationId 2612
30 
31 CATALOG(pg_language,2612)
32 {
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 */
40 
41 #ifdef CATALOG_VARLEN /* variable-length fields start here */
42  aclitem lanacl[1]; /* Access privileges */
43 #endif
45 
46 /* ----------------
47  * Form_pg_language corresponds to a pointer to a tuple with
48  * the format of pg_language relation.
49  * ----------------
50  */
52 
53 /* ----------------
54  * compiler constants for pg_language
55  * ----------------
56  */
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
66 
67 /* ----------------
68  * initial contents of pg_language
69  * ----------------
70  */
71 
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
81 
82 #endif /* PG_LANGUAGE_H */
CATALOG(pg_language, 2612)
Definition: pg_language.h:31
DATA(insert OID=12("internal" PGUID f f 0 0 2246 _null_))
unsigned int Oid
Definition: postgres_ext.h:31
Definition: c.h:541
FormData_pg_language
Definition: pg_language.h:44
FormData_pg_language * Form_pg_language
Definition: pg_language.h:51
DESCR("built-in functions")