diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-12-24 17:52:19 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-12-24 17:52:19 -0500 |
commit | 3f88b080030682adf359248c9cb7f8b2068a539e (patch) | |
tree | 662bac427c7213819b7968494661af5ec02dbb57 /doc/src | |
parent | c2b32180649fe9105e784ad0519fe243605f78a3 (diff) | |
download | postgresql-3f88b080030682adf359248c9cb7f8b2068a539e.tar.gz postgresql-3f88b080030682adf359248c9cb7f8b2068a539e.zip |
Fix some minor issues in view pretty-printing.
Code review for commit 2f582f76b1945929ff07116cd4639747ce9bb8a1: don't use
a static variable for what ought to be a deparse_context field, fix
non-multibyte-safe test for spaces, avoid useless and potentially O(N^2)
(though admittedly with a very small constant) calculations of wrap
positions when we aren't going to wrap.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/func.sgml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index e184d99626e..35c7f75eab2 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -13858,7 +13858,7 @@ SELECT pg_type_is_visible('myschema.widget'::regtype); <row> <entry><literal><function>pg_get_viewdef(<parameter>view_name</parameter>, <parameter>pretty_bool</>)</function></literal></entry> <entry><type>text</type></entry> - <entry>get underlying <command>SELECT</command> command for view, + <entry>get underlying <command>SELECT</command> command for view; lines with fields are wrapped to 80 columns if <parameter>pretty_bool</parameter> is true (<emphasis>deprecated</emphasis>)</entry> </row> <row> @@ -13869,14 +13869,15 @@ SELECT pg_type_is_visible('myschema.widget'::regtype); <row> <entry><literal><function>pg_get_viewdef(<parameter>view_oid</parameter>, <parameter>pretty_bool</>)</function></literal></entry> <entry><type>text</type></entry> - <entry>get underlying <command>SELECT</command> command for view, + <entry>get underlying <command>SELECT</command> command for view; lines with fields are wrapped to 80 columns if <parameter>pretty_bool</parameter> is true</entry> </row> <row> - <entry><literal><function>pg_get_viewdef(<parameter>view_oid</parameter>, <parameter>wrap_int</>)</function></literal></entry> + <entry><literal><function>pg_get_viewdef(<parameter>view_oid</parameter>, <parameter>wrap_column_int</>)</function></literal></entry> <entry><type>text</type></entry> - <entry>get underlying <command>SELECT</command> command for view, - wrapping lines with fields as specified, pretty printing is implied</entry> + <entry>get underlying <command>SELECT</command> command for view; + lines with fields are wrapped to specified number of columns, + pretty printing is implied</entry> </row> <row> <entry><literal><function>pg_options_to_table(<parameter>reloptions</parameter>)</function></literal></entry> |