Re: "Hanging Connection" blocks access to table (JBossMQ) - Mailing list pgsql-jdbc

From Tom Lane
Subject Re: "Hanging Connection" blocks access to table (JBossMQ)
Date
Msg-id 29655.1160750114@sss.pgh.pa.us
Whole thread Raw
In response to Re: "Hanging Connection" blocks access to table (JBossMQ)  (Markus Schaber <schabi@logix-tt.com>)
Responses Re: "Hanging Connection" blocks access to table (JBossMQ)  (Markus Schaber <schabi@logix-tt.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Guillaume Cottenceau
Date:
Subject: Re: 'now' is sometimes not now - but current_timestamp is
Next
From: Markus Schaber
Date:
Subject: Re: "Hanging Connection" blocks access to table (JBossMQ)