1/*-------------------------------------------------------------------------
2 *
3 * pg_pltemplate.h
4 * definition of the "PL template" system catalog (pg_pltemplate)
5 *
6 *
7 * Portions Copyright (c) 1996-2019, 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 */
29CATALOG(pg_pltemplate,1136,PLTemplateRelationId) BKI_SHARED_RELATION
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
43} FormData_pg_pltemplate;
44
45/* ----------------
46 * Form_pg_pltemplate corresponds to a pointer to a row with
47 * the format of pg_pltemplate relation.
48 * ----------------
49 */
50typedef FormData_pg_pltemplate *Form_pg_pltemplate;
51
52#endif /* PG_PLTEMPLATE_H */
53