Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id C54EF2F4276 for ; Wed, 21 Mar 2012 06:37:02 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SAHyU-0002pu-Rf for pgsql-bugs@postgresql.org; Wed, 21 Mar 2012 09:37:02 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SAHyH-0002lT-BD for pgsql-bugs@postgresql.org; Wed, 21 Mar 2012 09:36:46 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1SAHyG-0002nj-Hq for pgsql-bugs@postgresql.org; Wed, 21 Mar 2012 09:36:44 +0000 Date: Wed, 21 Mar 2012 09:36:44 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6548: NOWAIT does not work in Select statement if table is locked using "Lock " command To: pgsql-bugs@postgresql.org From: neeraj.punmiya@securetogether.com X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/154 X-Sequence-Number: 32715 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D 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=3D1 for update nowait; select query waits until first session releases table lock. = Nowait does not have any effect in select statement. =