pgsql: scripts: Remove newlines from end of generated SQL

Started by Peter Eisentrautover 12 years ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d3c4c471553265e7517be24bae64b81967f6df40

Modified Files
--------------
src/bin/scripts/clusterdb.c | 2 +-
src/bin/scripts/createdb.c | 8 ++++----
src/bin/scripts/createlang.c | 6 +++---
src/bin/scripts/createuser.c | 4 ++--
src/bin/scripts/dropdb.c | 4 ++--
src/bin/scripts/droplang.c | 4 ++--
src/bin/scripts/dropuser.c | 4 ++--
src/bin/scripts/reindexdb.c | 4 ++--
src/bin/scripts/vacuumdb.c | 2 +-
9 files changed, 19 insertions(+), 19 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers