pgsql: scripts: Remove newlines from end of generated SQL - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: scripts: Remove newlines from end of generated SQL
Date
Msg-id E1WD3QS-0000D3-MB@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Don't generate plain-text HISTORY and src/test/regress/README an
Next
From: Tom Lane
Date:
Subject: pgsql: Cygwin build fixes.