50.9. pg_auth_members

Каталог pg_auth_members представляет отношения членства между ролями. Допускается любая не зацикленная иерархия отношений.

Так как пользователи определяются глобально, pg_auth_members разделяется всеми базами данных кластера; есть только единственная копия pg_auth_members в кластере, а не отдельные в каждой базе данных.

Таблица 50.9. Столбцы pg_auth_members

ИмяТипСсылкиОписание
roleidoidpg_authid.oidИдентификатор роли, включающей другую
memberoidpg_authid.oidИдентификатор роли, включаемой в роль roleid
grantoroidpg_authid.oidИдентификатор роли, разрешившей членство
admin_optionbool True, если member может разрешать членство в roleid другим ролям

50.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 50.9. pg_auth_members Columns

NameTypeReferencesDescription
roleidoidpg_authid.oidID of a role that has a member
memberoidpg_authid.oidID of a role that is a member of roleid
grantoroidpg_authid.oidID of the role that granted this membership
admin_optionbool True if member can grant membership in roleid to others