Must not reach consistency before XLOG_BACKUP_RECORD
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 5 Dec 2012 13:28:39 +0000 (13:28 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 5 Dec 2012 13:28:39 +0000 (13:28 +0000)
commitd56b6293009096ce64b30dd5ceddc35e768ac2f9
treecf94bd45669451e76efe3c1bb0145ef8bdcf7bea
parent0811f4fcf5c9a65aa4402ce9505b48df3677afcb
Must not reach consistency before XLOG_BACKUP_RECORD
When waiting for an XLOG_BACKUP_RECORD the minRecoveryPoint
will be incorrect, so we must not declare recovery as consistent
before we have seen the record. Major bug allowing recovery to end
too early in some cases, allowing people to see inconsistent db.
This patch to HEAD and 9.2, other fix required for 9.1 and 9.0

Simon Riggs and Andres Freund, bug report by Jeff Janes
src/backend/access/transam/xlog.c