pgsql: Fix some minor issues in view pretty-printing.
pgsql: Fix some minor issues in view pretty-printing.
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
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. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/3f88b080030682adf359248c9cb7f8b2068a539e Modified Files -------------- doc/src/sgml/func.sgml | 11 +- src/backend/utils/adt/ruleutils.c | 215 +++++++++++++++++++----------------- 2 files changed, 119 insertions(+), 107 deletions(-)