From: neeraj.punmiya@securetogether.com
To: pgsql-bugs@postgresql.org
Subject: BUG #6548: NOWAIT does not work in Select statement if table is locked using "Lock " command
Date: Wed, 21 Mar 2012 09:36:44 +0000
Message-ID: <E1SAHyG-0002nj-Hq@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 6548
Logged by: Neeraj Punmiya
Email address: neeraj.punmiya@securetogether.com
PostgreSQL version: 9.1.3
Operating system: CentOS 6.2 , Windows 7
Description:
Steps to simulate problem
============================
Create Table Test (x integer,y integer);
Insert Into Test Values(1,100);
Insert Into Test Values(2,200);
First database session:
---------------------------
start transaction;
Lock table Test;
Second database session
-----------------------
start transaction;
Select y from Test where x=1 for update nowait;
select query waits until first session releases table lock.
Nowait does not have any effect in select statement.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: neeraj.punmiya@securetogether.com
Subject: Re: BUG #6548: NOWAIT does not work in Select statement if table is locked using "Lock " command
In-Reply-To: <E1SAHyG-0002nj-Hq@wrigleys.postgresql.org>
References: <E1SAHyG-0002nj-Hq@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox