mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Backpatch error message fix from 81f6bbe8ad
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:
@ -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)
|
||||||
|
Reference in New Issue
Block a user