diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2020-11-07 22:15:52 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2020-11-07 22:42:17 +0100 |
commit | 16eadc4695ef120e5a6f6adf026a034e291806cc (patch) | |
tree | 2ffd179f359762258ea2d6efc6a901f2456883f6 /src/bin/pg_rewind/libpq_fetch.c | |
parent | 8ad6a0c1bb1c5a041cadfed713ef6bcabd0955ab (diff) | |
download | postgresql-16eadc4695ef120e5a6f6adf026a034e291806cc.tar.gz postgresql-16eadc4695ef120e5a6f6adf026a034e291806cc.zip |
Fix redundant error messages in client tools
A few client tools duplicate error messages already provided by libpq.
Discussion: https://www.postgresql.org/message-id/flat/3e937641-88a1-e697-612e-99bba4b8e5e4%40enterprisedb.com
Diffstat (limited to 'src/bin/pg_rewind/libpq_fetch.c')
-rw-r--r-- | src/bin/pg_rewind/libpq_fetch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/pg_rewind/libpq_fetch.c b/src/bin/pg_rewind/libpq_fetch.c index 0dae75b8628..97b1017a499 100644 --- a/src/bin/pg_rewind/libpq_fetch.c +++ b/src/bin/pg_rewind/libpq_fetch.c @@ -49,8 +49,7 @@ libpqConnect(const char *connstr) conn = PQconnectdb(connstr); if (PQstatus(conn) == CONNECTION_BAD) - pg_fatal("could not connect to server: %s", - PQerrorMessage(conn)); + pg_fatal("%s", PQerrorMessage(conn)); if (showprogress) pg_log_info("connected to server"); |