pgsql: In the checkpoint written at the end of archive recovery, the WAL - Mailing list pgsql-committers

From heikki@postgresql.org (Heikki Linnakangas)
Subject pgsql: In the checkpoint written at the end of archive recovery, the WAL
Date
Msg-id 20090827071541.A7EAC75331E@cvs.postgresql.org
Whole thread Raw
List 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.

Modified Files:
--------------
    pgsql/src/backend/access/transam:
        xlog.c (r1.348 -> r1.349)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/xlog.c?r1=1.348&r2=1.349)

pgsql-committers by date:

Previous
From: momjian@postgresql.org (Bruce Momjian)
Date:
Subject: pgsql: Update release notes for 7.4.26, 8.0.22, 8.1.18, 8.2.14, 8.3.8,
Next
From: heikki@postgresql.org (Heikki Linnakangas)
Date:
Subject: pgsql: In the checkpoint written at the end of archive recovery, the WAL