1
0
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:
Magnus Hagander 2012-06-05 13:13:53 +02:00
parent d9d721472f
commit 5c3532876f

View File

@ -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)