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:19:30 +0000 (21:19 +0300)
commit3d7905d21a45ae5790ad3ae5487d56de5cf39110
treef2576e3389d1ab1bef40630896c2a604fd86ba5f
parent113082c6579f3310ecaa6a5cba2e24a0ce325b5d
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