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

53.49. pg_shdescription #

The catalog <structname>pg_shdescription</structname> stores optional descriptions (comments) for shared database objects. Descriptions can be manipulated with the <link linkend="sql-comment"><command>COMMENT</command></link> command and viewed with <application>psql</application>'s <literal>\d</literal> commands. pg_shdescriptionには共有データベースオブジェクトに対する補足説明(コメント)を格納します。 補足説明はCOMMENTコマンドを使用して編集でき、psql\dコマンドを使用して閲覧できます。

See also <link linkend="catalog-pg-description"><structname>pg_description</structname></link>, which performs a similar function for descriptions involving objects within a single database. pg_descriptionも参照してください。 こちらは、単一データベース内のオブジェクトに関する説明について、同様の機能を行います。

Unlike most system catalogs, <structname>pg_shdescription</structname> is shared across all databases of a cluster: there is only one copy of <structname>pg_shdescription</structname> per cluster, not one per database. 他のシステムカタログと異なり、pg_shdescriptionはクラスタ内のすべてのデータベースに渡って共有されます。 データベース毎に存在するのではなく、1つのクラスタにpg_shdescriptionが1つのみ存在します。

表53.49 pg_shdescriptionの列

<title><structname>pg_shdescription</structname> Columns</title>

Column Type 列 型

Description 説明

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

The OID of the object this description pertains to この補足説明が属するオブジェクトの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 this object appears in このオブジェクトが現れるシステムカタログのOID

description text

Arbitrary text that serves as the description of this object このオブジェクトの説明となる任意のテキスト