Before removing backup_label and irrevocably changing pg_control file, check
authorHeikki Linnakangas <[email protected]>
Tue, 26 Oct 2010 18:15:42 +0000 (21:15 +0300)
committerHeikki Linnakangas <[email protected]>
Tue, 26 Oct 2010 18:41:39 +0000 (21:41 +0300)
commit3ad4549fc741360a6178b9bcaf2acebe5d9e8133
treeccdcc07f0efa0cdb0364774ae5330673cd8e22a0
parent3218c2cfc931535e9bb415b1b8c8cbe719c62cfe
Before removing backup_label and irrevocably changing pg_control file, check
that WAL file containing the checkpoint redo-location can be found. This
avoids making the cluster irrecoverable if the redo location is in an earlie
WAL file than the checkpoint record.

Report, analysis and patch by Jeff Davis, with small changes by me.
src/backend/access/transam/xlog.c