aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2012-06-05 13:13:53 +0200
committerMagnus Hagander <magnus@hagander.net>2012-06-05 13:13:53 +0200
commit5c3532876f8360df10692baf77a0b79c41ee001e (patch)
tree5722be8fce33e9d08df0c681e31483a9165bff35 /src
parentd9d721472f9900e70124ab734dc00f203d049506 (diff)
downloadpostgresql-5c3532876f8360df10692baf77a0b79c41ee001e.tar.gz
postgresql-5c3532876f8360df10692baf77a0b79c41ee001e.zip
Backpatch error message fix from 81f6bbe8ade8c90f23f9286ca9ca726d3e0e310f
Without this, pg_basebackup doesn't tell you why it failed when for example there is a file in the data directory that the backend doesn't have permissions to read.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_basebackup/pg_basebackup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c
index e9fb2cc08dc..472df3a1fbf 100644
--- a/src/bin/pg_basebackup/pg_basebackup.c
+++ b/src/bin/pg_basebackup/pg_basebackup.c
@@ -931,8 +931,8 @@ BaseBackup(void)
res = PQgetResult(conn);
if (PQresultStatus(res) != PGRES_TUPLES_OK)
{
- fprintf(stderr, _("%s: could not get WAL end position from server\n"),
- progname);
+ fprintf(stderr, _("%s: could not get WAL end position from server: %s"),
+ progname, PQerrorMessage(conn));
disconnect_and_exit(1);
}
if (PQntuples(res) != 1)