Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 504459FB976 for ; Thu, 26 Apr 2007 00:09:33 -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 63247-03 for ; Thu, 26 Apr 2007 00:09:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 182F59FB72C for ; Thu, 26 Apr 2007 00:09:24 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-221-161.bk12-dsl.surnet.cl [201.221.221.161]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l3Q37MeA020554; Wed, 25 Apr 2007 20:07:22 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 3C24D32A0C; Wed, 25 Apr 2007 23:07:16 -0400 (CLT) Date: Wed, 25 Apr 2007 23:07:16 -0400 From: Alvaro Herrera To: Aaron Bono Cc: Tom Lane , Richard Huxton , PostgreSQL SQL List Subject: Re: Query Join Performance Message-ID: <20070426030716.GD10666@alvh.no-ip.org> Mail-Followup-To: Aaron Bono , Tom Lane , Richard Huxton , PostgreSQL SQL List References: <462F9714.8090802@archonet.com> <6573.1177539802@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Wed, 25 Apr 2007 20:07:23 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/254 X-Sequence-Number: 28254 Aaron Bono wrote: > Looks like a vacuum analyze did the trick. Performance is beautiful now. I > should have tried that earlier. > > I thought I had the auto vacuum turned on (PostgreSQL 8.1) but I guess it > doesn't do analyze? > > Anyway, I will schedule a vacuum analyze nightly - it is low usage and won't > cause any problems. It should have done an analyze at some point. Unless this is Windows, in which case there's a bug that precludes autovacuum from running at all. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.