↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / System Information Functions And Operators

Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column.

Reading PG 18current·documented in 24 of 27 versions, 7.4 to 20

Signatures & examples

pg_get_expr ( expr pg_node_tree, relation oid [, pretty boolean ] ) → text
Decompiles 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.
Version history 4
  1. 12 → 13 changed
  2. 9.0 → 9.1 changed
  3. 7.4 → 8.0 changed
  4. 7.3 → 7.4 added

Definition snapshot: b7bd9cda · English manual source