Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id B1A2A6329FB for ; Wed, 31 Mar 2010 17:48:13 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 93786-07 for ; Wed, 31 Mar 2010 20:47:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 683C56339EA for ; Wed, 31 Mar 2010 17:48:02 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 8AE47348035; Wed, 31 Mar 2010 13:48:00 -0700 (PDT) Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q-qPwfw2AgsI; Wed, 31 Mar 2010 13:48:00 -0700 (PDT) Received: from perhan.alvh.no-ip.org (200-126-64-10.bk5-dsl.surnet.cl [200.126.64.10]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 2FC9D348033; Wed, 31 Mar 2010 13:48:00 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id E8DE66E858; Wed, 31 Mar 2010 17:47:57 -0300 (CLST) Date: Wed, 31 Mar 2010 17:47:57 -0300 From: Alvaro Herrera To: Scott Carey Cc: Andy Colson , Gnanakumar , "pgsql-performance@postgresql.org" Subject: Re: Database size growing over time and leads to performance impact Message-ID: <20100331204757.GE3284@alvh.no-ip.org> References: <004701cacdad$7013e9f0$503bbdd0$@com> <4BAE09AE.9020305@squeakycode.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.327 tagged_above=-10 required=5 tests=AWL=0.272, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/414 X-Sequence-Number: 38239 Scott Carey wrote: > > On Mar 27, 2010, at 6:35 AM, Andy Colson wrote: > > > > Dont "VACUUM FULL", its not helping you, and is being removed in newer versions. > > > > Off topic: How is that going to work? CLUSTER doesn't work on tables > without an index. I would love to be able to CLUSTER on some column > set that doesn't necessarily have an index. VACUUM FULL has been rewritten in 9.0 so that it uses the CLUSTER logic, except that it doesn't require an index. If you want to do it in earlier versions, you can use a no-op SET TYPE command, like so: ALTER TABLE foo ALTER COLUMN bar SET TYPE baz; assuming that table foo has a column bar which is already of type baz. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support