历史版本。 PostgreSQL 9.1 已结束支持。 2016-10-27. 请参阅 当前版本手册.
45.17. 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 只会在对象创建期间被查阅。