Complain with proper error message if streaming stops prematurely

Magnus Hagander <magnus@hagander.net>

Commit: 254316f5a240621ea417329bd26320c53e283020
Author: Magnus Hagander <magnus@hagander.net>
Date: 2012-08-06T11:53:46Z
Releases: 9.3.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