Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 98E259FB32A for ; Mon, 15 Jan 2007 10:53:55 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 91185-03 for ; Mon, 15 Jan 2007 10:53:18 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id B45D09FB221 for ; Mon, 15 Jan 2007 10:53:23 -0400 (AST) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1H6TMl-0007kk-3a for pgsql-sql@postgresql.org; Mon, 15 Jan 2007 10:03:19 -0500 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 4B8FA41A2; Mon, 15 Jan 2007 09:53:16 -0500 (EST) Date: Mon, 15 Jan 2007 09:53:16 -0500 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: vacuum process taking more than 33 hours Message-ID: <20070115145316.GC13011@phlogiston.dyndns.org> References: <2529.5826.qm@web30013.mail.mud.yahoo.com> <20070115143247.GA13011@phlogiston.dyndns.org> <86aad3420701150644j5beef392q7007324f3d7008a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86aad3420701150644j5beef392q7007324f3d7008a@mail.gmail.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/49 X-Sequence-Number: 27201 On Mon, Jan 15, 2007 at 02:44:15PM +0000, Ezequiel Luis Pellettieri wrote: > Hi Andrew, > > Why don't you try droping all indexes exept but the constraints ones for > each table. I don't have the problem, so I don't know whether that will help. > then you'll free aprox half of DB size. then re-create indexes, one by one. > and finally you can perform a full vacuum. > > that worked for me. :) On some versions of Postgres, it will, but AFAIK the latest versions don't have the same index bloat problems. Moreover, if your vacuum regime is right, you should _never_ have to VACUUM FULL. A -- Andrew Sullivan | ajs@crankycanuck.ca When my information changes, I alter my conclusions. What do you do sir? --attr. John Maynard Keynes