Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id AB8E09FB643 for ; Fri, 13 Jul 2007 18:05:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 84457-01 for ; Fri, 13 Jul 2007 18:05:19 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id A75469FB283 for ; Fri, 13 Jul 2007 18:05:24 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-218-82.bk12-dsl.surnet.cl [201.221.218.82]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l6DL5JgP009503; Fri, 13 Jul 2007 14:05:21 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 036E847C47; Fri, 13 Jul 2007 17:05:03 -0400 (CLT) Date: Fri, 13 Jul 2007 17:05:02 -0400 From: Alvaro Herrera To: smiley2211 Cc: pgsql-performance@postgresql.org Subject: Re: Database Statistics??? Message-ID: <20070713210502.GG12109@alvh.no-ip.org> References: <11583450.post@talk.nabble.com> <4697B8C7.7030304@jobflash.com> <11585080.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <11585080.post@talk.nabble.com> User-Agent: Mutt/1.5.16 (2007-06-11) X-Virus-Scanned: ClamAV 0.90.3/3642/Thu Jul 12 04:47:18 2007 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]); Fri, 13 Jul 2007 14:05:21 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/166 X-Sequence-Number: 25850 smiley2211 wrote: > > Thanks Tom and Scott...that worked for a NEW database but not on the original > SLOW database...meaning - I backed up the SLOW database and restored it to a > NEW database and the query ran EXTREMELY FAST :clap: Have you ever vacuumed the DB? -- Alvaro Herrera http://www.flickr.com/photos/alvherre/ "Aprender sin pensar es inútil; pensar sin aprender, peligroso" (Confucio)