Re: NOWAIT doesn't work

Поиск
Список
Период
Сортировка
От Christian Kruse
Тема Re: NOWAIT doesn't work
Дата
Msg-id 3797457.EorIznE5Hc@sunshine.local.defunced.de
обсуждение исходный текст
Ответ на NOWAIT doesn't work  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Hi,

On Wednesday, October 31, 2012 02:51:38 PM Pavel Stehule wrote:
> Hello
> 
> it is expected behave?
> 
> 1.session
> 
> postgres=# begin;
> BEGIN
> postgres=# lock oo IN ACCESS EXCLUSIVE MODE;
> LOCK TABLE
> 
> 2. session
> 
> postgres=# select * from oo for update nowait;
> 
> hangs forever ....

Yes, I think so. From the documentation:

Note that NOWAIT applies only to the row-level lock(s)
(http://www.postgresql.org/docs/9.2/static/sql-select.html)

Greetings,CK





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

Предыдущее
От: Szymon Guz
Дата:
Сообщение: Re: NOWAIT doesn't work
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: NOWAIT doesn't work