Re: Revisited: Transactions, insert unique.

Поиск
Список
Период
Сортировка
От Ed Loehr
Тема Re: Revisited: Transactions, insert unique.
Дата
Msg-id 3907733C.C6464306@austin.rr.com
обсуждение исходный текст
Ответ на Re: Revisited: Transactions, insert unique.  (Joachim Achtzehnter <joachim@kraut.bc.ca>)
Ответы Re: Revisited: Transactions, insert unique.
Список pgsql-general
rmcm@compsoft.com.au wrote:
>
> Doesn't
>
>      SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
>
> have to come within transaction - ie
>
>      BEGIN;
>      SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
>
> In this order your test seems to behave correctly - only 1 row inserted.

Yes, my initial ordering was in error.  But even after reordering, the
point is not that only 1 row was inserted, but rather that Transaction A
was able to see the effects of transaction B when it clearly should not.

Regards,
Ed Loehr

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

Предыдущее
От: rmcm@compsoft.com.au
Дата:
Сообщение: Re: Revisited: Transactions, insert unique.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] 7.0 weirdness (maybe solaris?)