pgsql: Better fix for "unarchived WAL files get deleted on crash recove

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Better fix for "unarchived WAL files get deleted on crash recove
Date: 2013-02-15 17:40:19
Message-ID: E1U6PGl-0004h2-Qt@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Better fix for "unarchived WAL files get deleted on crash recovery" bug.

Revert my earlier fix for the bug that unarchived WAL files get deleted on
crash recovery, commit c9cc7e05c6d82a9781883a016c70d95aa4923122. We create
a .done file for files streamed or restored from archive, so the WAL file
recycling logic used during normal operation works just as well during
archive recovery.

Per Fujii Masao's suggestion.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1bd42cd70abdbc946ad64c3c8eaefed4bb8b1145

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

Browse pgsql-committers by date

  From Date Subject
Next Message Kevin Grittner 2013-02-16 01:01:10 Re: Materialized views WIP patch
Previous Message Heikki Linnakangas 2013-02-15 17:30:57 pgsql: Force archive_status of .done for xlogs created by dearchival/re