Before removing backup_label and irrevocably changing pg_control file, check

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 35b66df6e7681703b0beb4e13f52b023634c1f0a
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2010-10-26T18:41:21Z
Releases: 8.1.23
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.

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +17 −2