Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UTevS-0003Yk-ED for pgsql-bugs@arkaria.postgresql.org; Sat, 20 Apr 2013 21:02:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UTevR-0007oc-70 for pgsql-bugs@arkaria.postgresql.org; Sat, 20 Apr 2013 21:02:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UTevJ-0007iW-Hm for pgsql-bugs@postgresql.org; Sat, 20 Apr 2013 21:02:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UTevF-0005Gr-Qb for pgsql-bugs@postgresql.org; Sat, 20 Apr 2013 21:02:17 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r3KL2BJS009654; Sat, 20 Apr 2013 17:02:11 -0400 (EDT) From: Tom Lane To: vaidyand@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8095: postgres acquiring lock on a table when not in transaction In-reply-to: References: Comments: In-reply-to vaiayand@gmail.com message dated "Fri, 19 Apr 2013 00:54:07 -0000" Date: Sat, 20 Apr 2013 17:02:11 -0400 Message-ID: <9653.1366491731@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org vaiayand@gmail.com writes: > We investigated one issue and found the following: > postgres is acquiring a lock on table when not in trancation during prepared > ROLLBACK statement. It is releasing the acquired lock at end. > but postgres should not get lock on a table when not in transaction. After > acquiring any lock, if backend process dies (say SIGTERM signal), the > postgres will be in lock-not-released state. Thanks for the report. I believe I've fixed this. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs