选择 打开 改范围 完整检索页

pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。

不受支持的版本: 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0
历史版本PostgreSQL 9.1 已于 2016 年 10 月结束社区维护,本页译文保留供仍在使用旧版本的读者参考。新系统请看当前版本手册首页

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)

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

注意

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

提交更正

译文有误、术语不当或页面显示问题,请到译文仓库 pgsty/pgdoc 报告译文问题。 英文原文本身的问题,请在当前版本的对应页面向上游反馈;上游不再修订已结束维护的版本。