Skip to content

Commit 5c35328

Browse files
committed
Backpatch error message fix from 81f6bbe
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.
1 parent d9d7214 commit 5c35328

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,8 +931,8 @@ BaseBackup(void)
931931
res = PQgetResult(conn);
932932
if (PQresultStatus(res) != PGRES_TUPLES_OK)
933933
{
934-
fprintf(stderr, _("%s: could not get WAL end position from server\n"),
935-
progname);
934+
fprintf(stderr, _("%s: could not get WAL end position from server: %s"),
935+
progname, PQerrorMessage(conn));
936936
disconnect_and_exit(1);
937937
}
938938
if (PQntuples(res) != 1)

0 commit comments

Comments
 (0)