From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Goldner <mgoldner@agmednet.com>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Michael Goldner <mike.goldner@comcast.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: "Hanging Connection" blocks access to table (JBossMQ)
Date: Wed, 11 Oct 2006 14:57:07 -0400
Message-ID: <12649.1160593027@sss.pgh.pa.us> (raw)
In-Reply-To: <C152AE66.1D03%mgoldner@agmednet.com>
References: <C152AE66.1D03%mgoldner@agmednet.com>
Michael Goldner <mgoldner@agmednet.com> 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
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-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, mgoldner@agmednet.com, pg@fastcrypt.com, mike.goldner@comcast.net
Subject: Re: "Hanging Connection" blocks access to table (JBossMQ)
In-Reply-To: <12649.1160593027@sss.pgh.pa.us>
References: <C152AE66.1D03%mgoldner@agmednet.com> <12649.1160593027@sss.pgh.pa.us>
* 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