Re: NOWAIT doesn't work - Mailing list pgsql-hackers

From Christian Kruse
Subject Re: NOWAIT doesn't work
Date
Msg-id 3797457.EorIznE5Hc@sunshine.local.defunced.de
Whole thread Raw
In response to NOWAIT doesn't work  (Pavel Stehule <pavel.stehule@gmail.com>)
List 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 by date:

Previous
From: Szymon Guz
Date:
Subject: Re: NOWAIT doesn't work
Next
From: Alvaro Herrera
Date:
Subject: Re: NOWAIT doesn't work