OSDN Git Service

Before removing backup_label and irrevocably changing pg_control file, check
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 26 Oct 2010 18:15:42 +0000 (21:15 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 26 Oct 2010 18:43:52 +0000 (21:43 +0300)
commit0c6293dd0361a0d3c72c94ced389c509019713a7
tree243e9d36f7e5f160f1bf5c123fc9e877e7e2b55a
parenta87d21263600a978ff85142c53375ab25eb30bce
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