Before removing backup_label and irrevocably changing pg_control file, check

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 3ad4549fc741360a6178b9bcaf2acebe5d9e8133
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2010-10-26T18:41:39Z
Releases: 8.3.13
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