pg_get_viewdef ( view oid [, pretty boolean ] ) → textReconstructs the underlying
SELECT command for a view or materialized view. (This is a decompiled reconstruction, not the original text of the command.)Functions / System Information Functions And Operators
Reconstructs the underlying SELECT command for a view or materialized view.
Reading PG 18current·documented in 26 of 27 versions, 7.2 to 20
pg_get_viewdef ( view oid [, pretty boolean ] ) → textReconstructs the underlying
SELECT command for a view or materialized view. (This is a decompiled reconstruction, not the original text of the command.)pg_get_viewdef ( view oid, wrap_column integer ) → textReconstructs the underlying
SELECT command for a view or materialized view. (This is a decompiled reconstruction, not the original text of the command.) In this form of the function, pretty-printing is always enabled, and long lines are wrapped to try to keep them shorter than the specified number of columns.pg_get_viewdef ( view text [, pretty boolean ] ) → textReconstructs the underlying
SELECT command for a view or materialized view, working from a textual name for the view rather than its OID. (This is deprecated; use the OID variant instead.)Definition snapshot: b7bd9cda · English manual source