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

53.19. pg_description #

The catalog <structname>pg_description</structname> stores optional descriptions (comments) for each database object. 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. Descriptions of many built-in system objects are provided in the initial contents of <structname>pg_description</structname>. 各データベースオブジェクトに対して付けられたオプションの補足説明(コメント)はpg_descriptionカタログに格納されます。 補足説明はCOMMENTコマンドで編集でき、psql\dコマンドで表示できます。 多くの組み込み型のシステムオブジェクトの説明は、pg_descriptionの最初の部分で提供されています。

See also <link linkend="catalog-pg-shdescription"><structname>pg_shdescription</structname></link>, which performs a similar function for descriptions involving objects that are shared across a database cluster. pg_shdescriptionも参照してください。 こちらは、データベースクラスタに渡って共有されるオブジェクトに関する説明について、同様の機能を行います。

表53.19 pg_descriptionの列

<title><structname>pg_description</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

objsubid int4

For a comment on 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. テーブル列についてのコメントの場合、これは列の(objoidもしくはclassoidはテーブル自身を参照します)列番号です。 他のすべての種類のオブジェクトでは、この列はゼロです。

description text

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