目录pg_auth_members展示了角色之间的成员关系。允许任何无环的关系集合。
由于用户标识符是集簇范围的,pg_auth_members在一个集簇的所有数据库之间共享:在一个集簇中只有一份pg_auth_members拷贝,而不是每个数据库一份。
表 45.9. pg_auth_members 列
| Name | Type | References | Description |
|---|
roleid | oid | pg_authid.oid | ID of a role that has a member |
member | oid | pg_authid.oid | ID of a role that is a member of roleid |
grantor | oid | pg_authid.oid | ID of the role that granted this membership |
admin_option | bool | | True if member can grant membership in
roleid to others |