Re: Synchronization levels in SR - Mailing list pgsql-hackers

From Markus Wanner
Subject Re: Synchronization levels in SR
Date
Msg-id 4C85F150.1010305@bluegap.ch
Whole thread Raw
In response to Re: Synchronization levels in SR  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Synchronization levels in SR
List pgsql-hackers
Hi,

On 05/27/2010 01:28 PM, Robert Haas wrote:
> How do you propose to guarantee that?  ISTM that you have to either
> commit locally first, or send the commit to the remote first.  Either
> way, the two events won't occur exactly simultaneously.

I'm not getting the point of this discussion. As long as the database 
confirms the commit to the client only *after* having an ack from the 
standby and *after* committing locally, there's no problem.

In any case, a server failure in between the commit request of the 
client and the commit confirmation for the client results in a client 
that can't tell if its transaction committed or not.

So why do we care what to do first internally? Ideally, these two tasks 
should happen concurrently, IMO.

Regards

Markus Wanner


pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: WIP: Triggers on VIEWs
Next
From: Markus Wanner
Date:
Subject: Re: Interruptible sleeps (was Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!)