Re: More FOR UPDATE/FOR SHARE problems

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: More FOR UPDATE/FOR SHARE problems
Дата
Msg-id 200902030304.n1334Ww18548@momjian.us
обсуждение исходный текст
Ответ на Re: More FOR UPDATE/FOR SHARE problems  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian wrote:
> The fundamental behavior above is that the S1 transaction is adding
> _and_ removing rows from the S2 query's result set;  S2 is seeing the
> pre-query values that don't match its criteria and ignoring them and
> blocking on a later row that does match its criteria.  Once S1 commits,
> the new row does not match its criteria and it skips it, making the
> SELECT FOR UPDATE return zero rows, and the S2 UPDATE do nothing.
> 
> Serializable mode does prevent the problem outlined above.

To clarify, serializable throws an error, as expected.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: How to get SE-PostgreSQL acceptable
Следующее
От: Robert Haas
Дата:
Сообщение: Re: add_path optimization