aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2014-08-02 14:57:21 +0900
committerFujii Masao <fujii@postgresql.org>2014-08-02 14:59:10 +0900
commit39217ce414190c11df02db4f500acbc52bacfb0a (patch)
treeaadedb76880de2cb235fd5012f34bd0321cbdfca
parent8c4fdfbc9f84a2dd84d7ff4f5826d0ebf82573ca (diff)
downloadpostgresql-39217ce414190c11df02db4f500acbc52bacfb0a.tar.gz
postgresql-39217ce414190c11df02db4f500acbc52bacfb0a.zip
Fix bug in pg_receivexlog --verbose.
In 9.2, pg_receivexlog with verbose option has emitted the messages at the end of each WAL file. But the commit 0b63291 suppressed such messages by mistake. This commit fixes the bug so that pg_receivexlog --verbose outputs such messages again. Back-patch to 9.3 where the bug was added.
-rw-r--r--src/bin/pg_basebackup/receivelog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_basebackup/receivelog.c b/src/bin/pg_basebackup/receivelog.c
index ded9b70dc21..866d4d82eaf 100644
--- a/src/bin/pg_basebackup/receivelog.c
+++ b/src/bin/pg_basebackup/receivelog.c
@@ -1082,7 +1082,7 @@ HandleCopyStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline,
xlogoff = 0;
- if (still_sending && stream_stop(blockpos, timeline, false))
+ if (still_sending && stream_stop(blockpos, timeline, true))
{
if (PQputCopyEnd(conn, NULL) <= 0 || PQflush(conn))
{