PostgreSQL Source Code  git master
pg_pltemplate.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_pltemplate.h
4  * definition of the "PL template" system catalog (pg_pltemplate)
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_pltemplate.h
11  *
12  * NOTES
13  * The Catalog.pm module reads this file and derives schema
14  * information.
15  *
16  *-------------------------------------------------------------------------
17  */
18 #ifndef PG_PLTEMPLATE_H
19 #define PG_PLTEMPLATE_H
20 
21 #include "catalog/genbki.h"
22 #include "catalog/pg_pltemplate_d.h"
23 
24 /* ----------------
25  * pg_pltemplate definition. cpp turns this into
26  * typedef struct FormData_pg_pltemplate
27  * ----------------
28  */
29 CATALOG(pg_pltemplate,1136,PLTemplateRelationId) BKI_SHARED_RELATION BKI_WITHOUT_OIDS
30 {
31  NameData tmplname; /* name of PL */
32  bool tmpltrusted; /* PL is trusted? */
33  bool tmpldbacreate; /* PL is installable by db owner? */
34 
35 #ifdef CATALOG_VARLEN /* variable-length fields start here */
36  text tmplhandler BKI_FORCE_NOT_NULL; /* name of call handler
37  * function */
38  text tmplinline; /* name of anonymous-block handler, or NULL */
39  text tmplvalidator; /* name of validator function, or NULL */
40  text tmpllibrary BKI_FORCE_NOT_NULL; /* path of shared library */
41  aclitem tmplacl[1]; /* access privileges for template */
42 #endif
44 
45 /* ----------------
46  * Form_pg_pltemplate corresponds to a pointer to a row with
47  * the format of pg_pltemplate relation.
48  * ----------------
49  */
51 
52 #endif /* PG_PLTEMPLATE_H */
FormData_pg_pltemplate
Definition: pg_pltemplate.h:43
#define BKI_SHARED_RELATION
Definition: genbki.h:27
#define BKI_WITHOUT_OIDS
Definition: genbki.h:28
#define BKI_FORCE_NOT_NULL
Definition: genbki.h:34
Definition: c.h:570
FormData_pg_pltemplate * Form_pg_pltemplate
Definition: pg_pltemplate.h:50
CATALOG(pg_pltemplate, 1136, PLTemplateRelationId) BKI_SHARED_RELATION BKI_WITHOUT_OIDS
Definition: pg_pltemplate.h:29
Definition: c.h:516