postgres.git / summary / log / commit / refs

commit    280cf0fe789d8ea2fdc3b8e374bfd82f674264de
Author:   Peter Eisentraut <peter_e@gmx.net>
Date:     Sat May 05 14:51:38 2018 +0000
First released in: 11.0, 9.3.23, 9.4.18, 9.5.13, 9.6.9, 10.4

    Remove extra newlines after PQerrorMessage()


src/bin/pg_basebackup/streamutil.c | 2 +- src/bin/pg_dump/pg_dumpall.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/pg_basebackup/streamutil.c b/src/bin/pg_basebackup/streamutil.c index 02f008b1b01..ddf24ff5cac 100644 --- a/src/bin/pg_basebackup/streamutil.c +++ b/src/bin/pg_basebackup/streamutil.c @@ -219,7 +219,7 @@ GetConnection(void) res = PQexec(tmpconn, ALWAYS_SECURE_SEARCH_PATH_SQL); if (PQresultStatus(res) != PGRES_TUPLES_OK) { - fprintf(stderr, _("%s: could not clear search_path: %s\n"), + fprintf(stderr, _("%s: could not clear search_path: %s"), progname, PQerrorMessage(tmpconn)); PQclear(res); PQfinish(tmpconn); diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c index 0b493c04830..c9b86ebd7bb 100644 --- a/src/bin/pg_dump/pg_dumpall.c +++ b/src/bin/pg_dump/pg_dumpall.c @@ -1919,7 +1919,7 @@ connectDatabase(const char *dbname, const char *connection_string, if (fail_on_error) { fprintf(stderr, - _("%s: could not connect to database \"%s\": %s\n"), + _("%s: could not connect to database \"%s\": %s"), progname, dbname, PQerrorMessage(conn)); exit_nicely(1); } [parent: c06380e97692]