]> begriffs open source - ai-pg/blob - full-docs/txt/catalog-pg-attrdef.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / catalog-pg-attrdef.txt
1
2 52.6. pg_attrdef #
3
4    The catalog pg_attrdef stores column default expressions and generation
5    expressions. The main information about columns is stored in
6    pg_attribute. Only columns for which a default expression or generation
7    expression has been explicitly set will have an entry here.
8
9    Table 52.6. pg_attrdef Columns
10
11    Column Type
12
13    Description
14
15    oid oid
16
17    Row identifier
18
19    adrelid oid (references pg_class.oid)
20
21    The table this column belongs to
22
23    adnum int2 (references pg_attribute.attnum)
24
25    The number of the column
26
27    adbin pg_node_tree
28
29    The column default or generation expression, in nodeToString()
30    representation. Use pg_get_expr(adbin, adrelid) to convert it to an SQL
31    expression.