From 0f51a848ab98325e497a227155648facd9d0cf9b Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 1 Oct 2015 21:42:00 -0400 Subject: pg_rewind: Improve some messages The output of a typical pg_rewind run contained a mix of capitalized and not-capitalized and punctuated and not-punctuated phrases for no apparent reason. Make that consistent. Also fix some problems in other messages. --- src/bin/pg_rewind/libpq_fetch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bin/pg_rewind/libpq_fetch.c') diff --git a/src/bin/pg_rewind/libpq_fetch.c b/src/bin/pg_rewind/libpq_fetch.c index 0e186f2c36f..41d687ba403 100644 --- a/src/bin/pg_rewind/libpq_fetch.c +++ b/src/bin/pg_rewind/libpq_fetch.c @@ -120,7 +120,7 @@ libpqGetCurrentXlogInsertLocation(void) val = run_simple_query("SELECT pg_current_xlog_insert_location()"); if (sscanf(val, "%X/%X", &hi, &lo) != 2) - pg_fatal("unrecognized result \"%s\" for current XLOG insert location\n", val); + pg_fatal("unrecognized result \"%s\" for current WAL insert location\n", val); result = ((uint64) hi) << 32 | lo; @@ -248,7 +248,7 @@ receiveFileChunks(const char *sql) continue; /* final zero-row result */ default: - pg_fatal("unexpected result while fetching remote files: %s\n", + pg_fatal("unexpected result while fetching remote files: %s", PQresultErrorMessage(res)); } @@ -300,7 +300,7 @@ receiveFileChunks(const char *sql) if (PQgetisnull(res, 0, 2)) { pg_log(PG_DEBUG, - "received NULL chunk for file \"%s\", file has been deleted\n", + "received null value for chunk for file \"%s\", file has been deleted\n", filename); pg_free(filename); PQclear(res); -- cgit v1.2.3