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

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

支持中的版本: 当前版本 (18) / 17 / 16 / 15 / 14
开发中的版本: 19 / 20devel
已结束支持的版本: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0
历史版本。 PostgreSQL 9.1 已结束支持。 2016-10-27. 请参阅 当前版本手册.

45.17. pg_default_acl #

目录pg_default_acl存储要被分配给新创建对象的初始权限。

表 45.17. pg_default_acl 列

NameTypeReferencesDescription
defaclroleoidpg_authid.oidThe OID of the role associated with this entry
defaclnamespaceoidpg_namespace.oidThe OID of the namespace associated with this entry, or 0 if none
defaclobjtypechar  Type of object this entry is for: r = relation (table, view), S = sequence, f = function
defaclaclaclitem[]  Access privileges that this type of object should have on creation

一个pg_default_acl项表示要赋给属于指定用户的对象的初始权限。目前有两类项:defaclnamespace = 0 的“全局”项,以及引用特定模式的“按模式”项。如果存在全局项,则它会覆盖该对象类型通常写死的默认权限。如果存在按模式项,则表示要将这些权限附加到全局默认权限或写死的默认权限之上。

注意,当另一个目录中的 ACL 项为 NULL 时,它表示该对象采用写死的默认权限,而不是当前 pg_default_acl 中可能存在的内容。pg_default_acl 只会在对象创建期间被查阅。

报告文档问题

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