Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
49.6. pg_attrdef
Prev UpChapter 49. System CatalogsHome Next

49.6. pg_attrdef

The catalogpg_attrdef stores column default values. The main information about columns is stored inpg_attribute (see below). Only columns that explicitly specify a default value (when the table is created or the column is added) will have an entry here.

Table 49.6. pg_attrdef Columns

NameTypeReferencesDescription
oidoid Row identifier (hidden attribute; must be explicitly selected)
adrelidoidpg_class.oidThe table this column belongs to
adnumint2pg_attribute.attnumThe number of the column
adbinpg_node_tree The internal representation of the column default value
adsrctext A human-readable representation of the default value

Theadsrc field is historical, and is best not used, because it does not track outside changes that might affect the representation of the default value. Reverse-compiling theadbin field (withpg_get_expr for example) is a better way to display the default value.


Prev Up Next
49.5. pg_amproc Home 49.7. pg_attribute
pdfepub
Go to Postgres Pro Standard 9.5
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp