mirror of
https://github.com/postgres/postgres.git
synced 2025-06-08 22:02:03 +03:00
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.
This commit is contained in:
parent
d9d721472f
commit
5c3532876f
@ -931,8 +931,8 @@ BaseBackup(void)
|
|||||||
res = PQgetResult(conn);
|
res = PQgetResult(conn);
|
||||||
if (PQresultStatus(res) != PGRES_TUPLES_OK)
|
if (PQresultStatus(res) != PGRES_TUPLES_OK)
|
||||||
{
|
{
|
||||||
fprintf(stderr, _("%s: could not get WAL end position from server\n"),
|
fprintf(stderr, _("%s: could not get WAL end position from server: %s"),
|
||||||
progname);
|
progname, PQerrorMessage(conn));
|
||||||
disconnect_and_exit(1);
|
disconnect_and_exit(1);
|
||||||
}
|
}
|
||||||
if (PQntuples(res) != 1)
|
if (PQntuples(res) != 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user