Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 06F0F9FB376 for ; Wed, 11 Oct 2006 15:57:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 79222-05-2 for ; Wed, 11 Oct 2006 15:57:12 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 1D6749FB3A4 for ; Wed, 11 Oct 2006 15:57:11 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k9BIv7P7012650; Wed, 11 Oct 2006 14:57:07 -0400 (EDT) To: Michael Goldner cc: Dave Cramer , Michael Goldner , pgsql-jdbc@postgresql.org Subject: Re: "Hanging Connection" blocks access to table (JBossMQ) In-reply-to: References: Comments: In-reply-to Michael Goldner message dated "Wed, 11 Oct 2006 14:21:26 -0400" Date: Wed, 11 Oct 2006 14:57:07 -0400 Message-ID: <12649.1160593027@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.09 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200610/75 X-Sequence-Number: 15958 Michael Goldner writes: > I shut down postgresql manually (pg_ctl restart -m immediiate) after I had > first stopped Jboss and waited about 30 seconds to see that the two blocking > connections were not closing. Really? "-m immediate" should boot backends off lock waits in any case ... and does according to my tests. Whether Jboss notices the connections dropping right away might be another story. What are you observing as a "not closed" connection? I wouldn't personally use "-m immediate" for this purpose mind you. "-m fast" is safer and should have the same result. regards, tom lane