↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

已结束支持的版本: 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2 / 8.1
历史版本。 PostgreSQL 9.2 已结束支持。 2017-11-09. 请参阅 当前版本手册.

45.34. pg_pltemplate #

目录pg_pltemplate存储过程语言的“模板”信息。有了语言模板,就可以用简单的CREATE LANGUAGE命令在特定数据库中创建该语言,无需指定实现细节。

与大多数系统目录不同,pg_pltemplate由一个集簇中的所有数据库共享:每个集簇只有一份pg_pltemplate,而不是每个数据库各有一份。这样,每个数据库都可以在需要时访问这些信息。

表 45.34. pg_pltemplate列

NameTypeDescription
tmplnamenameName of the language this template is for
tmpltrustedbooleanTrue if language is considered trusted
tmpldbacreatebooleanTrue if language may be created by a database owner
tmplhandlertextName of call handler function
tmplinlinetextName of anonymous-block handler function, or null if none
tmplvalidatortextName of validator function, or null if none
tmpllibrarytextPath of shared library that implements language
tmplaclaclitem[]Access privileges for template (not actually used)

目前没有用于操纵过程语言模板的命令;要更改内置信息,超级用户必须使用普通的INSERT、DELETE或UPDATE命令修改此表。

注意

pg_pltemplate很可能会在PostgreSQL的某个未来版本中移除,改为将这些过程语言的信息保存在各自的扩展安装脚本中。

报告文档问题

阅读 上游文档. 反馈更正前请先核对 当前版本手册.