Re: synchronized snapshots

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: synchronized snapshots
Дата
Msg-id 1432128.baSlv4axZa@alap2
обсуждение исходный текст
Ответ на Re: synchronized snapshots  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
On Monday, August 15, 2011 08:40:34 Simon Riggs wrote:
> On Mon, Aug 15, 2011 at 2:31 AM, Joachim Wieland <joe@mcknight.de> wrote:
> > In short, this is how it works:
> > 
> > SELECT pg_export_snapshot();
> >  pg_export_snapshot
> > --------------------
> >  000003A1-1
> > (1 row)
> > 
> > 
> > (and then in a different session)
> > 
> > BEGIN TRANSACTION ISOLATION LEVEL REPEATABLE READ (SNAPSHOT =
> > '000003A1-1');
> I don't see the need to change the BEGIN command, which is SQL
> Standard. We don't normally do that.
Uhm. There already are several extensions to begin transaction. Like the just 
added "DEFERRABLE".

> If we have pg_export_snapshot() why not pg_import_snapshot() as well?
Using BEGIN has the advantage of making it explicit that it cannot be used 
inside an existing transaction. Which I do find advantageous.

Andres


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: synchronized snapshots
Следующее
От: Jun Ishiduka
Дата:
Сообщение: Re: Online base backup from the hot-standby