pgsql: Before removing backup_label and irrevocably changing pg_control

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Before removing backup_label and irrevocably changing pg_control
Date: 2010-10-26 18:47:39
Message-ID: E1PAoYd-0002pl-HW@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL8_1_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=35b66df6e7681703b0beb4e13f52b023634c1f0a

Modified Files
--------------
src/backend/access/transam/xlog.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2010-10-26 18:56:07 pgsql: Fix dumb typo in SECURITY LABEL error message.
Previous Message Peter Eisentraut 2010-10-26 17:12:35 pgsql: Add missing newlines at end of files