pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。
pg_default_acl #目录pg_default_acl存储要被分配给新创建对象的初始权限。
表 45.17. pg_default_acl 列
| Name | Type | References | Description |
|---|---|---|---|
defaclrole |
oid |
|
The OID of the role associated with this entry |
defaclnamespace |
oid |
|
The OID of the namespace associated with this entry, or 0 if none |
defaclobjtype |
char |
Type of object this entry is for: r = relation (table, view), S = sequence, f = function |
|
defaclacl |
aclitem[] |
Access privileges that this type of object should have on creation |
一个pg_default_acl项表示,要赋给属于指定用户的对象的初始权限。 目前有两类项:defaclnamespace = 0 的“全局”项,以及引用特定模式的“按模式”项。 如果存在全局项,则它会覆盖该对象类型通常写死的默认权限。 如果存在按模式项,则表示要将这些权限附加到全局默认权限或写死的默认权限之上。
注意,当另一个目录中的 ACL 项为 NULL 时,它表示该对象采用写死的默认权限, 而不是 当前 pg_default_acl 中可能存在的内容。 pg_default_acl 只会在对象创建期间被查阅。
译文有误、术语不当或页面显示问题,请到译文仓库 pgsty/pgdoc 报告译文问题。 英文原文本身的问题,请在当前版本的对应页面向上游反馈;上游不再修订已结束维护的版本。