From: Tom Lane <tgl@sss.pgh.pa.us>
To: Markus Schaber <schabi@logix-tt.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: "Hanging Connection" blocks access to table (JBossMQ)
Date: Fri, 13 Oct 2006 10:35:14 -0400
Message-ID: <29655.1160750114@sss.pgh.pa.us> (raw)
In-Reply-To: <452F7E19.5020800@logix-tt.com>
References: <C152B99C.1D17%mgoldner@agmednet.com>
<13679.1160594122@sss.pgh.pa.us>
<452F7E19.5020800@logix-tt.com>
Markus Schaber <schabi@logix-tt.com> writes:
> Is there any possibility that we make a backend realize this SIGIO (or
> whatever it gets) when the connection is closed?
I don't think it'd be a net win to add cycles to every query to check
the connection every so often.
> The same is for very long running C-Code functions (like PostGIS
> geomUnion() on geometries with millions of vertices), those also tend to
> block the backend for long times, without any possibility to kill it
> except SIGKILL.
That's the fault of the C code ... it should be doing
CHECK_FOR_INTERRUPTS periodically in any long-running loops.
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, schabi@logix-tt.com
Subject: Re: "Hanging Connection" blocks access to table (JBossMQ)
In-Reply-To: <29655.1160750114@sss.pgh.pa.us>
References: <C152B99C.1D17%mgoldner@agmednet.com> <13679.1160594122@sss.pgh.pa.us> <452F7E19.5020800@logix-tt.com> <29655.1160750114@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