SYSTEM CATALOGS / SYSTEM CATALOGS
pg_attrdef
Read PG 18 manual ↗The catalog pg_attrdef stores column default expressions and generation expressions.
- Kind
- System catalogs
- Columns in this snapshot
- 4
- Definition source
- English manual
Columns 4
| Column | Type | Description / reference |
|---|---|---|
oid | oid | Row identifier |
adrelid | oid | The table this column belongs to pg_class.oid |
adnum | int2 | The number of the column pg_attribute.attnum |
adbin | pg_node_tree | The column default or generation expression, in nodeToString() representation. Use pg_get_expr(adbin, adrelid) to convert it to an SQL expression. |
Column history across versions
Version history 4
- PG 17 → 18changed
- PG 11 → 12changed
- PG 9.2 → 9.3changed
- PG 9.0 → 9.1changed
Definition snapshot: english-manuals:0ab0946153655003cbe811793bc… · English manual source