]> granicus.if.org Git - postgresql/commit
Check that we've reached end-of-backup also when we're not performing
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 30 Mar 2011 07:36:58 +0000 (10:36 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 30 Mar 2011 07:53:28 +0000 (10:53 +0300)
commitacf47401321ce55f06026a2f5d5512b404da3e55
treead77343da8e3478b35beafda0fef7475c64f3b32
parent754baa21f723255272c24dc5f9ab456858e361e3
Check that we've reached end-of-backup also when we're not performing
archive recovery.

It's possible to restore an online backup without recovery.conf, by simply
copying all the necessary WAL files to pg_xlog. "pg_basebackup -x" does that
too. That's the use case where this cross-check is useful.

Backpatch to 9.0. We used to do this in earlier versins, but in 9.0 the code
was inadvertently changed so that the check is only performed after archive
recovery.

Fujii Masao.
src/backend/access/transam/xlog.c