postgresql/src/backend/utils
Tom Lane 0b7e660d6c Fix ruleutils pretty-printing to not generate trailing whitespace.
The pretty-printing logic in ruleutils.c operates by inserting a newline
and some indentation whitespace into strings that are already valid SQL.
This naturally results in leaving some trailing whitespace before the
newline in many cases; which can be annoying when processing the output
with other tools, as complained of by Joe Abbate.  We can fix that in
a pretty localized fashion by deleting any trailing whitespace before
we append a pretty-printing newline.  In addition, we have to modify the
code inserted by commit 2f582f76b1 so that
we also delete trailing whitespace when transposing items from temporary
buffers into the main result string, when a temporary item starts with a
newline.

This results in rather voluminous changes to the regression test results,
but it's easily verified that they are only removal of trailing whitespace.

Back-patch to 9.3, because the aforementioned commit resulted in many
more cases of trailing whitespace than had occurred in earlier branches.
2013-11-11 13:36:38 -05:00
..
adt Fix ruleutils pretty-printing to not generate trailing whitespace. 2013-11-11 13:36:38 -05:00
cache Fix whitespace issues found by git diff --check, add gitattributes 2013-11-10 14:48:29 -05:00
error Fix whitespace issues found by git diff --check, add gitattributes 2013-11-10 14:48:29 -05:00
fmgr Use appendStringInfoString instead of appendStringInfo where possible. 2013-10-31 10:55:59 -04:00
hash
init Remove CTimeZone/HasCTZSet, root and branch. 2013-11-01 13:57:31 -04:00
mb
misc Fix whitespace issues found by git diff --check, add gitattributes 2013-11-10 14:48:29 -05:00
mmgr Get rid of use of asprintf() in favor of a more portable implementation. 2013-10-22 18:42:13 -04:00
resowner Fix details missed by dynamic shared memory patch. 2013-10-14 08:00:26 -04:00
sort
time Fix old visibility bug in HeapTupleSatisfiesDirty 2013-08-02 17:02:36 -04:00
.gitignore
errcodes.txt
Gen_dummy_probes.sed
Gen_fmgrtab.pl
generate-errcodes.pl
Makefile
probes.d