Skip to content

pg_attrdef

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

columntypereferencesdescription
oidoidThe object ID
adrelidoidpg_class.oidThe table this column belongs to
adnumsmallintpg_attribute.attnumThe number of the column
adbinpg_node_treeThe internal representation of the column default value

Parent topic: System Catalogs Definitions