Re: cheaper snapshots

Поиск
Список
Период
Сортировка
От Ants Aasma
Тема Re: cheaper snapshots
Дата
Msg-id CA+CSw_tei7BdWmpJOPieW=L3wn3rr298FUp_H=BbfpT6tA=RkA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: cheaper snapshots  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: cheaper snapshots
Список pgsql-hackers
On Fri, Jul 29, 2011 at 2:20 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> Well, again, there are three levels:
>
> (A) synchronous_commit=off.  No waiting!
> (B) synchronous_commit=local transactions, and synchronous_commit=on
> transactions when sync rep is not in use.  Wait for xlog flush.
> (C) synchronous_commit=on transactions when sync rep IS in use.  Wait
> for xlog flush and replication.
...
> So basically, you can't be more asynchronous than the guy in front of
> you.

(A) still gives a guarantee - transactions that begin after the commit
returns see
the commited transaction. A weaker variant would say that if the commit
returns, and the server doesn't crash in the meantime, the commit would at
some point become visible. Maybe even that transactions that begin after the
commit returns become visible after that commit.

--
Ants Aasma


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Ants Aasma
Дата:
Сообщение: Re: cheaper snapshots
Следующее
От: Robert Haas
Дата:
Сообщение: Re: cheaper snapshots