Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id D7E8B9FB2FA for ; Fri, 13 Oct 2006 08:53:11 -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 67372-03 for ; Fri, 13 Oct 2006 08:53:00 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 68AEA9FB287 for ; Fri, 13 Oct 2006 08:53:00 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (84-72-188-217.dclient.hispeed.ch [84.72.188.217]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id D2AFD65977 for ; Fri, 13 Oct 2006 13:55:28 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 9D96218148BBF for ; Fri, 13 Oct 2006 13:52:57 +0200 (CEST) Message-ID: <452F7E19.5020800@logix-tt.com> Date: Fri, 13 Oct 2006 13:52:57 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Thunderbird 1.5.0.7 (X11/20060927) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: "Hanging Connection" blocks access to table (JBossMQ) References: <13679.1160594122@sss.pgh.pa.us> In-Reply-To: <13679.1160594122@sss.pgh.pa.us> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.341 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, SARE_MILLIONSOF X-Spam-Level: X-Archive-Number: 200610/86 X-Sequence-Number: 15969 Hi, Tom, Tom Lane wrote: > Michael Goldner 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