Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 6580F9FBBAD for ; Wed, 2 May 2007 05:33:54 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 78386-10 for ; Wed, 2 May 2007 05:33:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from p15105778.pureserver.info (p15105778.pureserver.info [217.160.133.184]) by postgresql.org (Postfix) with ESMTP id 3928B9FBBAA for ; Wed, 2 May 2007 05:33:49 -0300 (ADT) Received: by p15105778.pureserver.info (Postfix, from userid 65534) id 24B61440D8; Wed, 2 May 2007 10:34:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by server1.proventis.net (Postfix) with ESMTP id 12BA1C44290 for ; Wed, 2 May 2007 10:33:47 +0200 (CEST) Received: from server1.proventis.net ([127.0.0.1]) by localhost (server1.proventis.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05559-09 for ; Wed, 2 May 2007 10:33:46 +0200 (CEST) Received: from [192.168.22.130] (tmarkus.proventis.net [192.168.22.130]) by server1.proventis.net (Postfix) with ESMTP id BF008C4428F for ; Wed, 2 May 2007 10:33:46 +0200 (CEST) Message-ID: <46384CEA.9080906@proventis.net> Date: Wed, 02 May 2007 10:33:46 +0200 From: Thomas Markus Organization: proventis GmbH User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: infinite blocking statements in 8.2.3 Content-Type: multipart/mixed; boundary="------------020504080205010304050009" X-Virus-Scanned: by amavisd-new at proventis.net X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/12 X-Sequence-Number: 25332 This is a multi-part message in MIME format. --------------020504080205010304050009 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit I'm running 8.2.3 on ubuntu 6.06 (2.6.15-26-server SMP i686) sometimes i have SELECTs that never ends. Normally I drop connections by killing the connection process (kill ). But these hanging connections (which blocks other statements infinitly) cant be killed. the only way is a pg_ctl -m immediate stop or a brutal kill -9 what can i do to - limit statement runtime (set hard timeout) - remove these blocking connections without killing other connections Thomas --------------020504080205010304050009 Content-Type: text/x-vcard; charset=utf-8; name="t.markus.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="t.markus.vcf" begin:vcard fn:Thomas Markus n:Markus;Thomas org:proventis GmbH adr;dom:;;Zimmerstr. 79-80;Berlin;Berlin;10117 email;internet:t.markus@proventis.net tel;work:+49 30 29 36 399 22 x-mozilla-html:FALSE url:http://www.proventis.net version:2.1 end:vcard --------------020504080205010304050009--