Complain with proper error message if streaming stops prematurely
authorMagnus Hagander <magnus@hagander.net>
Mon, 6 Aug 2012 11:53:46 +0000 (13:53 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 6 Aug 2012 11:53:46 +0000 (13:53 +0200)
commit254316f5a240621ea417329bd26320c53e283020
tree15ce52cec9c8687997f89fbce8c148a8f0b1cd53
parent3ff15883b1b4bcefb2278313a3137a688ebda505
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
src/bin/pg_basebackup/receivelog.c