| Документация по PostgreSQL 9.4.1 | |||
|---|---|---|---|
| Пред. | Уровень выше | Глава 48. Системные каталоги | След. |
48.9. pg_auth_members
Каталог pg_auth_members представляет отношения членства между ролями. Допускается любая не зацикленная иерархия отношений.
Так как пользователи определяются глобально, pg_auth_members разделяется всеми базами данных кластера; есть только единственная копия pg_auth_members в кластере, а не отдельные в каждой базе данных.
Таблица 48-9. Колонки pg_auth_members
| Имя | Тип | Ссылки | Описание |
|---|---|---|---|
| roleid | oid | pg_authid.oid | Идентификатор роли, включающей другую |
| member | oid | pg_authid.oid | Идентификатор роли, включаемой в роль roleid |
| grantor | oid | pg_authid.oid | Идентификатор роли, разрешившей членство |
| admin_option | bool | True, если member может разрешать членство в roleid другим ролям |
| Пред. | Начало | След. |
| pg_authid | Уровень выше | pg_cast |
| PostgreSQL 9.4.1 Documentation | |||
|---|---|---|---|
| Prev | Up | Chapter 48. System Catalogs | Next |
48.9. pg_auth_members
The catalog pg_auth_members shows the membership relations between roles. Any non-circular set of relationships is allowed.
Because user identities are cluster-wide, pg_auth_members is shared across all databases of a cluster: there is only one copy of pg_auth_members per cluster, not one per database.
Table 48-9. pg_auth_members Columns
| 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 |