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

53.28. pg_init_privs #

The catalog <structname>pg_init_privs</structname> records information about the initial privileges of objects in the system. There is one entry for each object in the database which has a non-default (non-NULL) initial set of privileges. pg_init_privsカタログは、システム内のオブジェクトの初期権限についての情報を記録します。 データベース内の初期権限のセットがデフォルトでない(NULLでない)オブジェクトごとに1つの記述があります。

Objects can have initial privileges either by having those privileges set when the system is initialized (by <application>initdb</application>) or when the object is created during a <link linkend="sql-createextension"><command>CREATE EXTENSION</command></link> and the extension script sets initial privileges using the <link linkend="sql-grant"><command>GRANT</command></link> system. Note that the system will automatically handle recording of the privileges during the extension script and that extension authors need only use the <command>GRANT</command> and <command>REVOKE</command> statements in their script to have the privileges recorded. The <literal>privtype</literal> column indicates if the initial privilege was set by <application>initdb</application> or during a <command>CREATE EXTENSION</command> command. オブジェクトは、システムが(initdbによって)初期化された時、またはオブジェクトがCREATE EXTENSIONの実行中に作成され、拡張スクリプトがGRANTコマンドを使用して初期権限をシステムにセットする時に初期権限を持つことができます。 システムは、拡張スクリプトの実行中に権限の記録を自動的に処理することや、拡張作成者が権限を記録させるためにスクリプトの中でGRANTREVOKEステートメントの使用のみを必要とすることに注意してください。 privtype列は、初期権限がinitdbによって設定されたか、もしくはCREATE EXTENSIONコマンド実行中に設定されたかを表示します。

Objects which have initial privileges set by <application>initdb</application> will have entries where <literal>privtype</literal> is <literal>'i'</literal>, while objects which have initial privileges set by <command>CREATE EXTENSION</command> will have entries where <literal>privtype</literal> is <literal>'e'</literal>. initdbによって設定された初期権限を持つオブジェクトは、privtype'i'で、CREATE EXTENSIONによって設定された初期権限を持つオブジェクトは、privtype'e'になります。

表53.28 pg_init_privsの列

<title><structname>pg_init_privs</structname> Columns</title>

Column Type 列 型

Description 説明

objoid oid (references any OID column) (いずれかのOID列)

The OID of the specific object 特定のオブジェクトのOID

classoid oid (references <link linkend="catalog-pg-class"><structname>pg_class</structname></link>.<structfield>oid</structfield>) (参照先 pg_class.oid

The OID of the system catalog the object is in オブジェクトが存在するシステムカタログのOID

objsubid int4

For a table column, this is the column number (the <structfield>objoid</structfield> and <structfield>classoid</structfield> refer to the table itself). For all other object types, this column is zero. テーブル列においては、列番号です(objoidclassoidはテーブル自身を参照します)。 その他すべてのオブジェクト型においては、この列はゼロです。

privtype char

A code defining the type of initial privilege of this object; see text オブジェクトの初期権限の型を設定しているコード。 テキストを参照してください

initprivs aclitem[]

The initial access privileges; see <xref linkend="ddl-priv"/> for details 初期アクセス権限。 詳細は5.7を参照してください