Re: Standalone synchronous master - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Standalone synchronous master
Date
Msg-id 20140108094857.GM14280@awork2.anarazel.de
Whole thread Raw
In response to Re: Standalone synchronous master  (Heikki Linnakangas <hlinnakangas@vmware.com>)
List pgsql-hackers
On 2014-01-08 11:07:48 +0200, Heikki Linnakangas wrote:
> I'm going to say right off the bat that I think the whole notion to
> automatically disable synchronous replication when the standby goes down is
> completely bonkers. If you don't need the strong guarantee that your
> transaction is safe in at least two servers before it's acknowledged to the
> client, there's no point enabling synchronous replication in the first
> place.

I think that's likely caused by the misconception that synchronous
replication is synchronous in apply, not just remote write/fsync. I have
now seen several sites that assumed that and just set up sync rep to
maintain that goal to then query standbys instead of the primary after
the commit finished.
If that assumption were true, supporting a timeout that way would
possibly be helpful, but it is not atm...

Greetings,

Andres Freund

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



pgsql-hackers by date:

Previous
From: Christoph Berg
Date:
Subject: Re: extra_float_digits and casting from real to numeric
Next
From: Dean Rasheed
Date:
Subject: Re: WIP patch (v2) for updatable security barrier views