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

53.6. pg_attrdef #

The catalog <structname>pg_attrdef</structname> stores column default values. The main information about columns is stored in <link linkend="catalog-pg-attribute"><structname>pg_attribute</structname></link>. Only columns for which a default value has been explicitly set will have an entry here. pg_attrdefシステムカタログは列のデフォルト値を格納します。 列の主要な情報はpg_attributeに格納されています。 デフォルト値が明示的に設定された列のみここに項目を持ちます。

表53.6 pg_attrdefの列

<title><structname>pg_attrdef</structname> Columns</title>

Column Type 列 型

Description 説明

oid oid

Row identifier 行識別子

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

The table this column belongs to この列が属するテーブル

adnum int2 (references <link linkend="catalog-pg-attribute"><structname>pg_attribute</structname></link>.<structfield>attnum</structfield>) (参照先 pg_attribute.attnum

The number of the column 列番号

adbin pg_node_tree

The column default value, in <function>nodeToString()</function> representation. Use <literal>pg_get_expr(adbin, adrelid)</literal> to convert it to an SQL expression. nodeToString()表現の列デフォルト値。 pg_get_expr(adbin, adrelid)を使ってSQL式に変換します。