Skip site navigation (1) Skip section navigation (2)

pgsql: In the checkpoint written at the end of archive recovery, the WAL

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: In the checkpoint written at the end of archive recovery, the WAL
Date: 2009-08-27 07:18:04
Message-ID: 20090827071804.B1CC675331E@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
In the checkpoint written at the end of archive recovery, the WAL page header
was incorrectly initialized with timeline ID 0. That rendered the WAL page
unrecoverable, making a subsequent archive recovery stop at that point.
ThisTimeLineID needs to be initialized before calling AdvanceXLInsertBuffer().

This fixes bug #5011 reported by James Bardin. Backpatch to 8.4, as the bug
was introduced by the changes to use of bgwriter for writing the
end-of-archive-recovery checkpoint. Patch by Tom Lane.

Tags:
----
REL8_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/access/transam:
        xlog.c (r1.345.2.2 -> r1.345.2.3)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/xlog.c?r1=1.345.2.2&r2=1.345.2.3)

pgsql-committers by date

Next:From: User HinoueDate: 2009-08-27 15:03:34
Subject: psqlodbc - psqlodbc: Changes for 8.4.0101.
Previous:From: Heikki LinnakangasDate: 2009-08-27 07:15:41
Subject: pgsql: In the checkpoint written at the end of archive recovery, the WAL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group