]> granicus.if.org Git - postgresql/commit
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:55:52 +0000 (13:55 +0200)
commit0b4660b539821ccdef99e43e79deb023a68db34e
tree18cd94cca2ded28c6dc81dd43fe20fe40a7f4612
parentd9c77e249339ec3a49731be55ff22bbdd5a1fcf0
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