Re: New sync commit mode remote_write - Mailing list pgsql-hackers

From Robert Haas
Subject Re: New sync commit mode remote_write
Date
Msg-id CA+TgmobHiiOwm+8tn=BVW4jgtChOKSO35k+osioT4y-7BKxwyw@mail.gmail.com
Whole thread Raw
In response to Re: New sync commit mode remote_write  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: New sync commit mode remote_write  (Simon Riggs <simon@2ndQuadrant.com>)
Re: New sync commit mode remote_write  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-hackers
On 4/19/12, Jeff Janes <jeff.janes@gmail.com> wrote:
> The work around would be for the master to refuse to automatically
> restart after a crash, insisting on a fail-over instead (or a manual
> forcing of recovery)?

I suppose that would work, but I think Simon's idea is better: don't
let the slave replay the WAL until either (a) it's promoted or (b) the
master finishes the fsync.   That boils down to adding some more
handshaking to the replication protocol, I think.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: libpq URI and regression testing
Next
From: Tom Lane
Date:
Subject: Re: Bug tracker tool we need