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 1D18332A0DA for ; Wed, 29 Sep 2004 03:25:56 +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 50949-06 for ; Wed, 29 Sep 2004 02:25:43 +0000 (GMT) Received: from rambo.iniquinet.com (rambo.iniquinet.com [69.39.89.10]) by svr1.postgresql.org (Postfix) with ESMTP id 901DC32A10C for ; Wed, 29 Sep 2004 03:25:30 +0100 (BST) Received: (qmail 27183 invoked by uid 1010); 28 Sep 2004 22:25:20 -0400 Received: from Robert_Creager@LogicalChaos.org by rambo.iniquinet.com by uid 1002 with qmail-scanner-1.20 (clamscan: 0.70. spamassassin: 2.64. Clear:RC:0(216.150.208.13):SA:0(-4.6/6.0):. Processed in 1.051685 secs); 29 Sep 2004 02:25:20 -0000 Received: from static-13.mm.den.viawest.net (HELO thunder.mshome.net) (perl?test@logicalchaos.org@216.150.208.13) by rambo.iniquinet.com with AES256-SHA encrypted SMTP; 28 Sep 2004 22:25:19 -0400 Received: from localhost.localdomain (thunder.mshome.net [192.168.0.250]) by thunder.mshome.net (Postfix) with ESMTP id 92DC0A8237; Tue, 28 Sep 2004 20:25:18 -0600 (MDT) Received: from logicalchaos.org (thunder.mshome.net [192.168.0.250]) by thunder.mshome.net (Postfix) with SMTP id 371B5A8237; Tue, 28 Sep 2004 20:25:08 -0600 (MDT) Date: Tue, 28 Sep 2004 20:25:07 -0600 From: Robert Creager To: Gaetano Mendola Cc: pgsql-performance@postgresql.org Subject: Re: This query is still running after 10 hours... Message-Id: <20040928202507.7fbbdb7c@thunder.mshome.net> In-Reply-To: <41597B51.7040100@bigfoot.com> References: <20040928081957.7a317a95@thunder.mshome.net> <41597B51.7040100@bigfoot.com> Organization: Starlight Vision, LLC. X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i586-mandrake-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Tue__28_Sep_2004_20_25_07_-0600_j=i95elLENMshOJ/" 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/317 X-Sequence-Number: 8445 --Signature=_Tue__28_Sep_2004_20_25_07_-0600_j=i95elLENMshOJ/ Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit When grilled further on (Tue, 28 Sep 2004 16:55:13 +0200), Gaetano Mendola confessed: > 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 ? > Gee, the two questions I realized I forgot to answer going into work ;-) I run pg_autovacuum, and it's working. Even ran a FULL ANALYZE, no help. The version is 7.4.1. Cheers, Rob -- 20:22:11 up 5 days, 22:48, 2 users, load average: 2.16, 2.18, 2.15 Linux 2.6.5-02 #8 SMP Mon Jul 12 21:34:44 MDT 2004 --Signature=_Tue__28_Sep_2004_20_25_07_-0600_j=i95elLENMshOJ/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iEYEARECAAYFAkFaHQMACgkQLQ/DKuwDYzm/TQCdHD4To5In8v00yp6/Av/e3r0z sWkAnAhNzkCrQj7n6+dmZy9EzPApdzad =wrEM -----END PGP SIGNATURE----- --Signature=_Tue__28_Sep_2004_20_25_07_-0600_j=i95elLENMshOJ/--