バージョンごとのドキュメント一覧

53.9. pg_auth_members #

The catalog <structname>pg_auth_members</structname> shows the membership relations between roles. Any non-circular set of relationships is allowed. pg_auth_membersカタログはロール間のメンバシップ関係を示しています。 循環していなければ、どのような関係でも許可されています。

Because user identities are cluster-wide, <structname>pg_auth_members</structname> is shared across all databases of a cluster: there is only one copy of <structname>pg_auth_members</structname> per cluster, not one per database. ユーザの同一性はクラスタ間で保たれる必要があるため、pg_auth_membersはクラスタ間のすべてのデータベースで共有されています。 pg_auth_membersのコピーはデータベースごとではなく、各クラスタにひとつだけ持っています。

表53.9 pg_auth_membersの列

<title><structname>pg_auth_members</structname> Columns</title>

Column Type 列 型

Description 説明

oid oid

Row identifier 行識別子

roleid oid (references <link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>.<structfield>oid</structfield>) (参照先 pg_authid.oid

ID of a role that has a member メンバを持っているロールのID

member oid (references <link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>.<structfield>oid</structfield>) (参照先 pg_authid.oid

ID of a role that is a member of <structfield>roleid</structfield> roleidのメンバであるロールのID

grantor oid (references <link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>.<structfield>oid</structfield>) (参照先 pg_authid.oid

ID of the role that granted this membership このメンバシップを与えたロールのID

admin_option bool

True if <structfield>member</structfield> can grant membership in <structfield>roleid</structfield> to others memberroleidのメンバシップを他に与えることができる場合はtrue

inherit_option bool

True if the member automatically inherits the privileges of the granted role メンバが付与されたロールの権限を自動的に継承する場合はtrue

set_option bool

True if the member can <link linkend="sql-set-role"><command>SET ROLE</command></link> to the granted role メンバがSET ROLEで付与されたロールに設定できる場合はtrue