Re: Transaction isolation with concurrent increments

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Transaction isolation with concurrent increments
Дата
Msg-id 19981.1023232865@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Transaction isolation with concurrent increments  (Nico Erichsen <nico.e@gmx.de>)
Список pgsql-bugs
Nico Erichsen <nico.e@gmx.de> writes:
>     set transaction isolation level serializable;
>     begin;
>     update counters set counter1=(select counter1+1 from counters);

Try it the other way round:

     begin;
     set transaction isolation level serializable;
     update counters set counter1=(select counter1+1 from counters);

Isolation level is a transaction-local setting so the first way doesn't
affect the level the BEGIN block actually uses.  (There is a SET
variable to change the default level for future transactions, but that
ain't what you set here.)

            regards, tom lane

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

Предыдущее
От: Nico Erichsen
Дата:
Сообщение: Transaction isolation with concurrent increments
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #682: current_timestamp reporting time incorrectly