]> granicus.if.org Git - postgresql/commit
scripts: Remove newlines from end of generated SQL
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 11 Feb 2014 02:47:19 +0000 (21:47 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 11 Feb 2014 02:47:19 +0000 (21:47 -0500)
commitd3c4c471553265e7517be24bae64b81967f6df40
treeaef40f43ee9832949a08ae7085b89e26ea5b85ad
parent2895415205d86cc7ab55acab5f90fd70a7c68f3c
scripts: Remove newlines from end of generated SQL

This results in spurious empty lines in the server log.  Instead, add
the newlines only when printing out the --echo output.  In some cases,
this was already done, leading to two newlines being printed.  Clean
that up as well.

From: Fabrízio de Royes Mello <fabriziomello@gmail.com>
src/bin/scripts/clusterdb.c
src/bin/scripts/createdb.c
src/bin/scripts/createlang.c
src/bin/scripts/createuser.c
src/bin/scripts/dropdb.c
src/bin/scripts/droplang.c
src/bin/scripts/dropuser.c
src/bin/scripts/reindexdb.c
src/bin/scripts/vacuumdb.c