]> 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:32 +0000 (21:41 +0300)
commit49b5aba40e0b0adb1caaea81c88dd0e54a7d3890
treef8a811b9ec3f1c232093e0e486eb05a9c8922f56
parent77f8685bec94b642f1606f64cca6080a2d834441
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