Fix pg_dump bug in the database-level collation patch. "datcollate" and
[PostgreSQL.git] / src / include / catalog / pg_pltemplate.h
blobb9b03c2f299e694e35a7de86e9ad299602e744c1
1 /*-------------------------------------------------------------------------
3 * pg_pltemplate.h
4 * definition of the system "PL template" relation (pg_pltemplate)
5 * along with the relation's initial contents.
8 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
11 * $PostgreSQL$
13 * NOTES
14 * the genbki.sh script reads this file and generates .bki
15 * information from the DATA() statements.
17 *-------------------------------------------------------------------------
19 #ifndef PG_PLTEMPLATE_H
20 #define PG_PLTEMPLATE_H
22 #include "catalog/genbki.h"
24 /* ----------------
25 * pg_pltemplate definition. cpp turns this into
26 * typedef struct FormData_pg_pltemplate
27 * ----------------
29 #define PLTemplateRelationId 1136
31 CATALOG(pg_pltemplate,1136) BKI_SHARED_RELATION BKI_WITHOUT_OIDS
33 NameData tmplname; /* name of PL */
34 bool tmpltrusted; /* PL is trusted? */
35 bool tmpldbacreate; /* PL is installable by db owner? */
36 text tmplhandler; /* name of call handler function */
37 text tmplvalidator; /* name of validator function, or NULL */
38 text tmpllibrary; /* path of shared library */
39 aclitem tmplacl[1]; /* access privileges for template */
40 } FormData_pg_pltemplate;
42 /* ----------------
43 * Form_pg_pltemplate corresponds to a pointer to a row with
44 * the format of pg_pltemplate relation.
45 * ----------------
47 typedef FormData_pg_pltemplate *Form_pg_pltemplate;
49 /* ----------------
50 * compiler constants for pg_pltemplate
51 * ----------------
53 #define Natts_pg_pltemplate 7
54 #define Anum_pg_pltemplate_tmplname 1
55 #define Anum_pg_pltemplate_tmpltrusted 2
56 #define Anum_pg_pltemplate_tmpldbacreate 3
57 #define Anum_pg_pltemplate_tmplhandler 4
58 #define Anum_pg_pltemplate_tmplvalidator 5
59 #define Anum_pg_pltemplate_tmpllibrary 6
60 #define Anum_pg_pltemplate_tmplacl 7
63 /* ----------------
64 * initial contents of pg_pltemplate
65 * ----------------
68 DATA(insert ( "plpgsql" t t "plpgsql_call_handler" "plpgsql_validator" "$libdir/plpgsql" _null_ ));
69 DATA(insert ( "pltcl" t t "pltcl_call_handler" _null_ "$libdir/pltcl" _null_ ));
70 DATA(insert ( "pltclu" f f "pltclu_call_handler" _null_ "$libdir/pltcl" _null_ ));
71 DATA(insert ( "plperl" t t "plperl_call_handler" "plperl_validator" "$libdir/plperl" _null_ ));
72 DATA(insert ( "plperlu" f f "plperl_call_handler" "plperl_validator" "$libdir/plperl" _null_ ));
73 DATA(insert ( "plpythonu" f f "plpython_call_handler" _null_ "$libdir/plpython" _null_ ));
75 #endif /* PG_PLTEMPLATE_H */