Re: UPDATE ... RETURNING atomicity

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UPDATE ... RETURNING atomicity
Дата
Msg-id 14702.1274627973@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: UPDATE ... RETURNING atomicity  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Ответы Re: UPDATE ... RETURNING atomicity  (rihad <rihad@mail.ru>)
Список pgsql-general
=?UTF-8?Q?Grzegorz_Ja=C5=9Bkiewicz?= <gryzman@gmail.com> writes:
> find in docs part that talks about transaction isolation levels, and
> translate it to your problem.

Yes, please read the fine manual:
http://www.postgresql.org/docs/8.4/static/mvcc.html

What I think will happen in your example is that all concurrent
executions will locate the same row-to-be-updated.  The first one to get
to the row "wins" and updates the row.  All the rest will fail, either
updating no rows (if not serializable) or throwing an error (if
serializable).

            regards, tom lane

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

Предыдущее
От: Grzegorz Jaśkiewicz
Дата:
Сообщение: Re: UPDATE ... RETURNING atomicity
Следующее
От: Andy Colson
Дата:
Сообщение: Re: Full text search on a complex schema - a classic problem?