Re: Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover
Date
Msg-id CA+U5nMJuc=8KhzjmoMNdiL0VA3WsjvndM3atYfhytCNf-9bmOg@mail.gmail.com
Whole thread Raw
In response to Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover
Re: Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover
List pgsql-hackers
On 29 July 2012 16:01, Fujii Masao <masao.fujii@gmail.com> wrote:

> Attached patch changes the startup process so that it creates .done file
> whenever WAL file is successfully restored, whether archive mode is
> enabled or not. The restored WAL files will not be archived again because
> of .done file.

The proposed patch works, for archiving only, but I don't like the
code. It's a partial refactoring of existing code.

I prefer to go for a full re-factoring version for HEAD, and a zero
refactoring version for 9.2 since we're deep into beta.

I've committed the simplified version for 9.2, as well as adding
support for streaming which you seem to have missed out.

Will look at the refactored version tomorrow.

-- Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: -Wformat-zero-length
Next
From: Qi Huang
Date:
Subject: Re: Git diff patch in context diff format