pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。
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的某个未来版本中移除, 改为将这些过程语言的信息保存在各自的扩展安装脚本中。
译文有误、术语不当或页面显示问题,请到译文仓库 pgsty/pgdoc 报告译文问题。 英文原文本身的问题,请在当前版本的对应页面向上游反馈;上游不再修订已结束维护的版本。