diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2012-02-19 11:43:46 -0500 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2012-02-19 11:43:46 -0500 |
commit | 2f582f76b1945929ff07116cd4639747ce9bb8a1 (patch) | |
tree | 83ec508a03711f9a7115843086629d699c28e568 /src/include/utils/builtins.h | |
parent | 84ff5b5db5f801f5da6690d8904cc88cea4700e8 (diff) | |
download | postgresql-2f582f76b1945929ff07116cd4639747ce9bb8a1.tar.gz postgresql-2f582f76b1945929ff07116cd4639747ce9bb8a1.zip |
Improve pretty printing of viewdefs.
Some line feeds are added to target lists and from lists to make
them more readable. By default they wrap at 80 columns if possible,
but the wrap column is also selectable - if 0 it wraps after every
item.
Andrew Dunstan, reviewed by Hitoshi Harada.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 2c331ce5eb9..fe253bcc7cd 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -624,6 +624,7 @@ extern Datum pg_get_ruledef(PG_FUNCTION_ARGS); extern Datum pg_get_ruledef_ext(PG_FUNCTION_ARGS); extern Datum pg_get_viewdef(PG_FUNCTION_ARGS); extern Datum pg_get_viewdef_ext(PG_FUNCTION_ARGS); +extern Datum pg_get_viewdef_wrap(PG_FUNCTION_ARGS); extern Datum pg_get_viewdef_name(PG_FUNCTION_ARGS); extern Datum pg_get_viewdef_name_ext(PG_FUNCTION_ARGS); extern Datum pg_get_indexdef(PG_FUNCTION_ARGS); |