Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 07B389FBB5B for ; Thu, 3 May 2007 02:33:38 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 77380-01 for ; Thu, 3 May 2007 02:33:34 -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 D347F9FBA64 for ; Thu, 3 May 2007 02:33:34 -0300 (ADT) Received: by p15105778.pureserver.info (Postfix, from userid 65534) id 668D2440D5; Thu, 3 May 2007 07:34:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by server1.proventis.net (Postfix) with ESMTP id 2B052C44291 for ; Thu, 3 May 2007 07:33:33 +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 12582-10 for ; Thu, 3 May 2007 07:33:32 +0200 (CEST) Received: from [192.168.22.130] (tmarkus.proventis.net [192.168.22.130]) by server1.proventis.net (Postfix) with ESMTP id A82ADC4428F for ; Thu, 3 May 2007 07:33:32 +0200 (CEST) Message-ID: <4639742C.7070902@proventis.net> Date: Thu, 03 May 2007 07:33:32 +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: Re: infinite blocking statements in 8.2.3 References: <46384CEA.9080906@proventis.net> In-Reply-To: <46384CEA.9080906@proventis.net> Content-Type: multipart/mixed; boundary="------------030709070905030800070402" X-Virus-Scanned: by amavisd-new at proventis.net X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/33 X-Sequence-Number: 25353 This is a multi-part message in MIME format. --------------030709070905030800070402 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit thanks for your awnsers i cant repeat the problem after increasing autovacuum_naptime to 5min. a vacuumdb -f -a runs over night (and finished :) ) and now that blocking statement finished after some seconds. it seems autovacuum = on is not enough. Thomas Markus schrieb: > 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 > --------------030709070905030800070402 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:;;Zimmerstr. 79-80;Berlin;Berlin;10117;Germany 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 --------------030709070905030800070402--