Re: New sync commit mode remote_write

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: New sync commit mode remote_write
Date: 2012-04-19 18:50:57
Message-ID: CA+TgmobHiiOwm+8tn=BVW4jgtChOKSO35k+osioT4y-7BKxwyw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 4/19/12, Jeff Janes <jeff(dot)janes(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-04-19 19:05:27 Re: Bug tracker tool we need
Previous Message Peter Eisentraut 2012-04-19 18:40:22 Re: libpq URI and regression testing