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

52.6. pg_attrdef #

The catalog <structname>pg_attrdef</structname> stores column default expressions and generation expressions. The main information about columns is stored in <link linkend="catalog-pg-attribute"><structname>pg_attribute</structname></link>. Only columns for which a default expression or generation expression has been explicitly set will have an entry here. 《マッチ度[77.653631]》pg_attrdefシステムカタログは列のデフォルト値を格納します。 列の主要な情報はpg_attributeに格納されています。 デフォルト値が明示的に設定された列のみここに項目を持ちます。 《機械翻訳》カタログpg_attrdefは、カラムデフォルト式および世代式を保管します。 列に関するメイン情報は、pg_attributeに保管されます。 デフォルト式または世代式が明示的に設定された列のみが、ここにエントリを持ちます。

表52.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 or generation expression, in <function>nodeToString()</function> representation. Use <literal>pg_get_expr(adbin, adrelid)</literal> to convert it to an SQL expression. 《マッチ度[76.344086]》nodeToString()表現の列デフォルト値。 pg_get_expr(adbin, adrelid)を使ってSQL式に変換します。 《機械翻訳》カラムデフォルトまたは世代式、nodeToString()表現形式。 SQL式に変換するにはpg_get_expr(adbin, adrelid)を使用します。