*** a/src/bin/pg_basebackup/receivelog.c --- b/src/bin/pg_basebackup/receivelog.c *************** *** 991,997 **** HandleCopyStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, xlogoff = 0; ! if (still_sending && stream_stop(blockpos, timeline, false)) { if (PQputCopyEnd(conn, NULL) <= 0 || PQflush(conn)) { --- 991,997 ---- xlogoff = 0; ! if (still_sending && stream_stop(blockpos, timeline, true)) { if (PQputCopyEnd(conn, NULL) <= 0 || PQflush(conn)) {