pg_get_expr ( expr pg_node_tree, relation oid [, pretty boolean ] ) → textDecompiles the internal form of an expression stored in the system catalogs, such as the default value for a column. If the expression might contain Vars, specify the OID of the relation they refer to as the second parameter; if no Vars are expected, passing zero is sufficient.
FUNCTIONS / SYSTEM INFORMATION FUNCTIONS AND OPERATORS
pg_get_expr
Read PG 18 manual ↗Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column.
Signatures & examples
Version history 2
- PG 12 → 13changed
- PG 9.0 → 9.1changed
Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source