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

From Andres Freund
Subject Re: NOWAIT doesn't work
Date
Msg-id 201210311456.30381.andres@2ndquadrant.com
Whole thread Raw
In response to NOWAIT doesn't work  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
On Wednesday, October 31, 2012 02:51:38 PM Pavel Stehule wrote:
> 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 ....

NOWAIT is about row level locks, not about table level locks.

Andres
-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: NOWAIT doesn't work
Next
From: Szymon Guz
Date:
Subject: Re: NOWAIT doesn't work