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 "language" system catalog (pg_language)
5  *
6  *
7  * Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/catalog/pg_language.h
11  *
12  * NOTES
13  * The Catalog.pm module reads this file and derives schema
14  * information.
15  *
16  *-------------------------------------------------------------------------
17  */
18 #ifndef PG_LANGUAGE_H
19 #define PG_LANGUAGE_H
20 
21 #include "catalog/genbki.h"
22 #include "catalog/pg_language_d.h"
23 
24 /* ----------------
25  * pg_language definition. cpp turns this into
26  * typedef struct FormData_pg_language
27  * ----------------
28  */
29 CATALOG(pg_language,2612,LanguageRelationId)
30 {
31  /* Language name */
32  NameData lanname;
33 
34  /* Language's owner */
35  Oid lanowner BKI_DEFAULT(PGUID);
36 
37  /* Is a procedural language */
38  bool lanispl BKI_DEFAULT(f);
39 
40  /* PL is trusted */
41  bool lanpltrusted BKI_DEFAULT(f);
42 
43  /* Call handler, if it's a PL */
44  Oid lanplcallfoid BKI_DEFAULT(0) BKI_LOOKUP(pg_proc);
45 
46  /* Optional anonymous-block handler function */
47  Oid laninline BKI_DEFAULT(0) BKI_LOOKUP(pg_proc);
48 
49  /* Optional validation function */
50  Oid lanvalidator BKI_DEFAULT(0) BKI_LOOKUP(pg_proc);
51 
52 #ifdef CATALOG_VARLEN /* variable-length fields start here */
53  /* Access privileges */
54  aclitem lanacl[1] BKI_DEFAULT(_null_);
55 #endif
57 
58 /* ----------------
59  * Form_pg_language corresponds to a pointer to a tuple with
60  * the format of pg_language relation.
61  * ----------------
62  */
64 
65 #endif /* PG_LANGUAGE_H */
unsigned int Oid
Definition: postgres_ext.h:31
CATALOG(pg_language, 2612, LanguageRelationId)
Definition: pg_language.h:29
#define BKI_DEFAULT(value)
Definition: genbki.h:36
Definition: c.h:570
#define BKI_LOOKUP(catalog)
Definition: genbki.h:38
FormData_pg_language
Definition: pg_language.h:56
FormData_pg_language * Form_pg_language
Definition: pg_language.h:63