From d3c4c471553265e7517be24bae64b81967f6df40 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 10 Feb 2014 21:47:19 -0500 Subject: scripts: Remove newlines from end of generated SQL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/bin/scripts/clusterdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bin/scripts/clusterdb.c') diff --git a/src/bin/scripts/clusterdb.c b/src/bin/scripts/clusterdb.c index 504b337a647..5ad1d01a1af 100644 --- a/src/bin/scripts/clusterdb.c +++ b/src/bin/scripts/clusterdb.c @@ -201,7 +201,7 @@ cluster_one_database(const char *dbname, bool verbose, const char *table, appendPQExpBufferStr(&sql, " VERBOSE"); if (table) appendPQExpBuffer(&sql, " %s", table); - appendPQExpBufferStr(&sql, ";\n"); + appendPQExpBufferStr(&sql, ";"); conn = connectDatabase(dbname, host, port, username, prompt_password, progname, false); -- cgit v1.2.3