pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabi@logix-tt.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: "Hanging Connection" blocks access to table (JBossMQ)
Date: Fri, 13 Oct 2006 13:52:57 +0200
Message-ID: <452F7E19.5020800@logix-tt.com> (raw)
In-Reply-To: <13679.1160594122@sss.pgh.pa.us>
References: <C152B99C.1D17%mgoldner@agmednet.com>
	<13679.1160594122@sss.pgh.pa.us>

Hi, Tom,

Tom Lane wrote:
> Michael Goldner <mgoldner@agmednet.com> writes:
>> When I shutdown Jboss, the idle process disappears, but the 2 "INSERT
>> waiting" processes remain indefinitely.
> 
> Ah.  That makes sense, because a backend blocked partway through a query
> isn't going to notice its client disconnecting.  The question here
> though is still "what are they waiting for?".  See pg_locks.

Is there any possibility that we make a backend realize this SIGIO (or
whatever it gets) when the connection is closed? I often had the problem
that I shut down my application, but the server kept working on that
query for a long time.

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.

Thanks,
Markus
-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org



view thread (11+ messages)  latest in thread

Message-ID: <452F7E19.5020800@logix-tt.com>
Permalink:  ../452F7E19.5020800@logix-tt.com/
Also on:    postgresql.org/message-id/452F7E19.5020800@logix-tt.com

 · 

reply

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: schabi@logix-tt.com
  Subject: Re: "Hanging Connection" blocks access to table (JBossMQ)
  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>

* 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