Re: Rows with exclusive lock

Поиск
Список
Период
Сортировка
От Florian Weimer
Тема Re: Rows with exclusive lock
Дата
Msg-id 87fygss5lv.fsf@mid.deneb.enyo.de
обсуждение исходный текст
Ответ на Re: Rows with exclusive lock  (Martin Marques <martin@bugs.unl.edu.ar>)
Список pgsql-sql
* Martin Marques:

>> That's what SELECT FOR UPDATE does.
>
> Hi Alvaro,
>
> After the SELECT FOR UPDATE other transactions can still see the
> locked rows. I want a read/write lock, so no one can access does rows.

You should probably run the other transactions at SERIALIZABLE level.
I suppose this will make them wait for the completion of the update.


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

Предыдущее
От: Martin Marques
Дата:
Сообщение: Re: Rows with exclusive lock
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Rows with exclusive lock