diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2015-10-01 21:42:00 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2015-10-01 21:42:00 -0400 |
commit | cdcae2b6a7d263b2771b6386af626b47ce17da19 (patch) | |
tree | 89a1215e4319afa2270c34d704c7e532b3479902 /src/bin/pg_rewind/libpq_fetch.c | |
parent | 87c2b517accf287cb746b58af570e7a29b5ad26a (diff) | |
download | postgresql-cdcae2b6a7d263b2771b6386af626b47ce17da19.tar.gz |
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.
Diffstat (limited to 'src/bin/pg_rewind/libpq_fetch.c')
-rw-r--r-- | src/bin/pg_rewind/libpq_fetch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_rewind/libpq_fetch.c b/src/bin/pg_rewind/libpq_fetch.c index 0e186f2c36..41d687ba40 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); |