Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id B2E239FB2AC for ; Fri, 13 Oct 2006 11:35:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 54707-08 for ; Fri, 13 Oct 2006 14:35:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id B0B779FA4CF for ; Fri, 13 Oct 2006 11:35:21 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k9DEZEXV029656; Fri, 13 Oct 2006 10:35:14 -0400 (EDT) To: Markus Schaber cc: pgsql-jdbc@postgresql.org Subject: Re: "Hanging Connection" blocks access to table (JBossMQ) In-reply-to: <452F7E19.5020800@logix-tt.com> References: <13679.1160594122@sss.pgh.pa.us> <452F7E19.5020800@logix-tt.com> Comments: In-reply-to Markus Schaber message dated "Fri, 13 Oct 2006 13:52:57 +0200" Date: Fri, 13 Oct 2006 10:35:14 -0400 Message-ID: <29655.1160750114@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.313 tagged_above=0 required=5 tests=SARE_MILLIONSOF, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200610/90 X-Sequence-Number: 15973 Markus Schaber 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