历史版本。 PostgreSQL 9.1 已结束支持。 2016-10-27. 请参阅 当前版本手册.
45.34. pg_pltemplate #
目录pg_pltemplate存储过程语言的“模板”信息。有了语言模板,就可以用简单的CREATE LANGUAGE命令在特定数据库中创建该语言,无需指定实现细节。
与大多数系统目录不同,pg_pltemplate由一个集簇中的所有数据库共享:每个集簇只有一份pg_pltemplate,而不是每个数据库各有一份。这样,每个数据库都可以在需要时访问这些信息。
表 45.34. pg_pltemplate列
| Name | Type | Description |
|---|---|---|
tmplname | name | Name of the language this template is for |
tmpltrusted | boolean | True if language is considered trusted |
tmpldbacreate | boolean | True if language may be created by a database owner |
tmplhandler | text | Name of call handler function |
tmplinline | text | Name of anonymous-block handler function, or null if none |
tmplvalidator | text | Name of validator function, or null if none |
tmpllibrary | text | Path of shared library that implements language |
tmplacl | aclitem[] | Access privileges for template (not actually used) |
目前没有用于操纵过程语言模板的命令;要更改内置信息,超级用户必须使用普通的INSERT、DELETE或UPDATE命令修改此表。
注意
pg_pltemplate很可能会在PostgreSQL的某个未来版本中移除,改为将这些过程语言的信息保存在各自的扩展安装脚本中。