]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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:41:49 +0000 (21:41 +0300)
commitb7888758d85f77388ca0ffd26ee37655e90d695c
tree894068780c6005a97164af81b319ea954c616257
parent4a75c7f9f1120db240b4ddccaa7d46f82bb495c0
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