51.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 51.9. pg_auth_members Columns

Column Type

Description

oidoid

Row identifier

roleidoid (references pg_authid.oid)

ID of a role that has a member

memberoid (references pg_authid.oid)

ID of a role that is a member of roleid

grantoroid (references pg_authid.oid)

ID of the role that granted this membership

admin_optionbool

True if member can grant membership in roleid to others

inherit_optionbool

True if the member automatically inherits the privileges of the granted role

set_optionbool

True if the member can SET ROLE to the granted role


close