Re: Synchronization levels in SR

Поиск
Список
Период
Сортировка
От Markus Wanner
Тема Re: Synchronization levels in SR
Дата
Msg-id 4C85F150.1010305@bluegap.ch
обсуждение исходный текст
Ответ на Re: Synchronization levels in SR  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Synchronization levels in SR  (Robert Haas <robertmhaas@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: Re: WIP: Triggers on VIEWs
Следующее
От: Markus Wanner
Дата:
Сообщение: Re: Interruptible sleeps (was Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!)