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

53.17. pg_default_acl #

The catalog <structname>pg_default_acl</structname> stores initial privileges to be assigned to newly created objects. pg_default_aclカタログには、新規に作成されたオブジェクトに割り当てられた初期権限が格納されます。

表53.17 pg_default_aclの列

<title><structname>pg_default_acl</structname> Columns</title>

Column Type 列 型

Description 説明

oid oid

Row identifier 行識別子

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

The OID of the role associated with this entry この項目に関連するロールのOID

defaclnamespace oid (references <link linkend="catalog-pg-namespace"><structname>pg_namespace</structname></link>.<structfield>oid</structfield>) (参照先 pg_namespace.oid

The OID of the namespace associated with this entry, or zero if none この項目に関連する名前空間のOID。何もない場合はゼロ

defaclobjtype char

Type of object this entry is for: <literal>r</literal> = relation (table, view), <literal>S</literal> = sequence, <literal>f</literal> = function, <literal>T</literal> = type, <literal>n</literal> = schema この項目のオブジェクト種類: r = リレーション(テーブル、ビュー)、 S = シーケンス、 f = 関数、 T = 型、 n = スキーマ

defaclacl aclitem[]

Access privileges that this type of object should have on creation この種類のオブジェクトが作成時に保持しなければならないアクセス権限


A <structname>pg_default_acl</structname> entry shows the initial privileges to be assigned to an object belonging to the indicated user. There are currently two types of entry: <quote>global</quote> entries with <structfield>defaclnamespace</structfield> = zero, and <quote>per-schema</quote> entries that reference a particular schema. If a global entry is present then it <emphasis>overrides</emphasis> the normal hard-wired default privileges for the object type. A per-schema entry, if present, represents privileges to be <emphasis>added to</emphasis> the global or hard-wired default privileges. pg_default_aclの項目は、指示されたユーザに属するオブジェクトに割り当てられる初期権限を示します。 現在2種類の項目があります。 defaclnamespace = ゼロを持つ大域的な項目と特定のスキーマを参照するスキーマ単位の項目です。 大域的な項目が存在する場合、その種類のオブジェクトの通常の組み込まれたデフォルト権限を上書きします。 もしスキーマ単位の項目があれば、それは大域的な権限または組み込まれたデフォルト権限に追加される権限を表します。

Note that when an ACL entry in another catalog is null, it is taken to represent the hard-wired default privileges for its object, <emphasis>not</emphasis> whatever might be in <structname>pg_default_acl</structname> at the moment. <structname>pg_default_acl</structname> is only consulted during object creation. 他のカタログ内のACL項目がNULLの場合、その時のpg_default_acl内のものではではなくそのオブジェクトの組み込まれたデフォルト権限を表すものが取られます。 pg_default_aclはオブジェクトの生成時のみに考慮されます。