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.)Reconstructs the underlying SELECT command for a view or materialized view.
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: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source