pg_pltemplate
The pg_pltemplate system catalog table stores template information for procedural languages.
A template for a language allows the language to be created in a particular database by a CREATE LANGUAGE command, with no need to specify implementation details.
Unlike most system catalogs, pg_pltemplate is shared across all databases of the Greengage DB system: there is only one copy of pg_pltemplate per system, not one per database.
This allows the information to be accessible in each database as it is necessary.
| Column | Type | Description |
|---|---|---|
tmplname |
name |
Name of the language this template is for |
tmpltrusted |
boolean |
|
tmpldbacreate |
boolean |
|
tmplhandler |
text |
Name of call handler function |
tmplinline |
text |
Name of anonymous-block handler function, or |
tmplvalidator |
text |
Name of validator function, or |
tmpllibrary |
text |
Path of a shared library that implements language |
tmplacl |
aclitem[] |
Access privileges for the template (not yet implemented) |