Re: [Bizgres-general] WAL bypass for INSERT, UPDATE and

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: [Bizgres-general] WAL bypass for INSERT, UPDATE and
Дата
Msg-id dofett$eat$1@news.hub.org
обсуждение исходный текст
Ответ на WAL bypass for INSERT, UPDATE and DELETE?  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: [Bizgres-general] WAL bypass for INSERT, UPDATE and  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
"Qingqing Zhou" <zhouqq@cs.toronto.edu> wrote
>
>
> To make things, is it possible to add a GUC to let user disable *all* the 
> xlogs?
>

It may work like this:

BEGIN TRANSACTION WITHOUT XLOG;    /* forbidden vacuum, PITR etc */
BEGIN
...    /* no xlog during this peroid */
END;   /* don't mark this transaction committed */
BEGIN
...
END;
END TRANSACTION DO COMMIT;    /* at this time issue checkpiont && mark all 
transactions committed */

So during this peroid, if any transaction failed, the only consequence is 
add invisible garbage data. When everything is going well, then END 
TRANSACTION DO COMMIT will mark these transaction permanate. Also, seems 
there is no problem even with XLOG_NO_TRAN updates.

Regards,
Qingqing




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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: PL/pgSQL proposal: using list of scalars in assign
Следующее
От: Ashok Agrawal
Дата:
Сообщение: Re: Oracle PL/SQL Anonymous block equivalent in postgres