mirror of
https://github.com/postgres/postgres.git
synced 2025-06-10 09:21:54 +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);
|
||||
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)
|
||||
|
Reference in New Issue
Block a user