Complain with proper error message if streaming stops prematurely

Magnus Hagander <magnus@hagander.net>

Commit: 0b4660b539821ccdef99e43e79deb023a68db34e
Author: Magnus Hagander <magnus@hagander.net>
Date: 2012-08-06T11:55:52Z
Releases: 9.2.0
Complain with proper error message if streaming stops prematurely

In particular, with a controlled shutdown of the master, pg_basebackup
with streaming log could terminate without an error message, even though
the backup is not consistent.

In passing, fix a few cases where walfile wasn't properly set to -1 after
closing.

Fujii Masao

Files

PathChange+/−
src/bin/pg_basebackup/receivelog.c modified +10 −0