improve_pg_basebackup_log_messages_v1.patch
text/x-diff
Filename: improve_pg_basebackup_log_messages_v1.patch
Type: text/x-diff
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: context
Series: patch v1
| File | + | − |
|---|---|---|
| src/bin/pg_basebackup/pg_basebackup.c | 3 | 0 |
*** a/src/bin/pg_basebackup/pg_basebackup.c
--- b/src/bin/pg_basebackup/pg_basebackup.c
***************
*** 914,920 **** BaseBackup(void)
res = PQexec(conn, "IDENTIFY_SYSTEM");
if (PQresultStatus(res) != PGRES_TUPLES_OK)
{
! fprintf(stderr, _("%s: could not identify system: %s\n"),
progname, PQerrorMessage(conn));
disconnect_and_exit(1);
}
--- 914,920 ----
res = PQexec(conn, "IDENTIFY_SYSTEM");
if (PQresultStatus(res) != PGRES_TUPLES_OK)
{
! fprintf(stderr, _("%s: could not identify system: %s"),
progname, PQerrorMessage(conn));
disconnect_and_exit(1);
}
***************
*** 1049,1056 **** BaseBackup(void)
res = PQgetResult(conn);
if (PQresultStatus(res) != PGRES_TUPLES_OK)
{
! fprintf(stderr, _("%s: could not get WAL end position from server\n"),
! progname);
disconnect_and_exit(1);
}
if (PQntuples(res) != 1)
--- 1049,1056 ----
res = PQgetResult(conn);
if (PQresultStatus(res) != PGRES_TUPLES_OK)
{
! fprintf(stderr, _("%s: could not get WAL end position from server: %s"),
! progname, PQerrorMessage(conn));
disconnect_and_exit(1);
}
if (PQntuples(res) != 1)