视图pg_group存在是为了向后兼容性:它模拟了在PostgreSQL版本8.1之前存在的目录。它显示了所有被标记为非rolcanlogin的角色的名称和成员,这是对被用作组的角色集合的近似。
表 45.57. pg_group 列
| Name | Type | References | Description |
|---|
groname | name | pg_authid.rolname | Name of the group |
grosysid | oid | pg_authid.oid | ID of this group |
grolist | oid[] | pg_authid.oid | An array containing the IDs of the roles in this group |