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:21 +0000 (21:41 +0300)
commit35b66df6e7681703b0beb4e13f52b023634c1f0a
treecca0757f005fe3110a1121142c9b5780feede7f0
parent62f86b32ea249bb207a4a6b3f6b4f675af64e523
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