pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Scott Carey <scott@richrelevance.com>
Cc: Andy Colson <andy@squeakycode.net>
Cc: Gnanakumar <gnanam@zoniac.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Database size growing over time and leads to performance impact
Date: Wed, 31 Mar 2010 17:47:57 -0300
Message-ID: <20100331204757.GE3284@alvh.no-ip.org> (raw)
In-Reply-To: <CB770C9C-F676-4153-8CBF-C698C253DD11@richrelevance.com>
References: <004701cacdad$7013e9f0$503bbdd0$@com>
	<4BAE09AE.9020305@squeakycode.net>
	<CB770C9C-F676-4153-8CBF-C698C253DD11@richrelevance.com>

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



view thread (15+ messages)  latest in thread

Message-ID: <20100331204757.GE3284@alvh.no-ip.org>
Permalink:  ../20100331204757.GE3284@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20100331204757.GE3284@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: alvherre@commandprompt.com, scott@richrelevance.com, andy@squeakycode.net, gnanam@zoniac.com
  Subject: Re: Database size growing over time and leads to performance impact
  In-Reply-To: <20100331204757.GE3284@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox