Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 82FEC12FE953 for ; Thu, 5 Apr 2012 13:45:30 -0300 (ADT) Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SFpoN-00013v-0i for pgsql-jdbc@postgresql.org; Thu, 05 Apr 2012 16:45:29 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SFpo1-00025b-Du for pgsql-jdbc@postgresql.org; Thu, 05 Apr 2012 18:45:06 +0200 Received: from 203.91.193.50 ([203.91.193.50]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Apr 2012 18:45:05 +0200 Received: from vinu.rm by 203.91.193.50 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Apr 2012 18:45:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: vinu Subject: Re: Locking Date: Thu, 5 Apr 2012 09:35:49 +0000 (UTC) Lines: 7 Message-ID: References: <0F35BAEA672CA340974082D0348491E603954717@HQ-EXVS03.anteon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 203.91.193.50 (Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2) X-Pg-Spam-Score: 1.7 (+) X-Archive-Number: 201204/11 X-Sequence-Number: 22811 I am having the same issue. Unless we close the connection or do a connection.commit(), the AccessShareLock is not getting released. ResultSet.close() and PreparedStatement.close() is not having any effect on this behavior. Is this the expected behavior ?