X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E5AA7329EFB for ; Tue, 28 Sep 2004 16:15:59 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 77744-04 for ; Tue, 28 Sep 2004 15:15:51 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 2D507329C63 for ; Tue, 28 Sep 2004 16:15:50 +0100 (BST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i8SFFofg079419 for ; Tue, 28 Sep 2004 15:15:50 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i8SEtK48070588 for pgsql-performance@postgresql.org; Tue, 28 Sep 2004 14:55:20 GMT From: Gaetano Mendola X-Newsgroups: comp.databases.postgresql.performance Subject: Re: This query is still running after 10 hours... Date: Tue, 28 Sep 2004 16:55:13 +0200 Organization: PYRENET Midi-pyrenees Provider Lines: 15 Message-ID: <41597B51.7040100@bigfoot.com> References: <20040928081957.7a317a95@thunder.mshome.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@pyrenet.fr To: Robert Creager User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en In-Reply-To: <20040928081957.7a317a95@thunder.mshome.net> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/313 X-Sequence-Number: 8441 Robert Creager wrote: > Help? > > Normally, this query takes from 5 minutes to 2 hours to run. On this update, it's been running for more than 10 hours. > > Can it be helped? When I see this usually means that tables are full of dead rows. Did you vacuum you DB. Which version are you using ? Regards Gaetano Mendola