pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris <dmagick@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: good old VACUUM FULL
Date: Wed, 23 Mar 2011 15:24:42 +1100
Message-ID: <4D89760A.3040109@gmail.com> (raw)
In-Reply-To: <AANLkTi=SMx4GiW5DLFTpOm4Go-ibipc6WpTN+4rY7tbF@mail.gmail.com>
References: <AANLkTi=SMx4GiW5DLFTpOm4Go-ibipc6WpTN+4rY7tbF@mail.gmail.com>

On 23/03/11 11:52, felix wrote:
> I posted many weeks ago about a severe problem with a table that was
> obviously bloated and was stunningly slow. Up to 70 seconds just to get
> a row count on 300k rows.
>
> I removed the text column, so it really was just a few columns of fixed
> data.
> Still very bloated.  Table size was 450M
>
> The advice I was given was to do CLUSTER, but this did not reduce the
> table size in the least.
> Nor performance.
>
> Also to resize my free space map (which still does need to be done).
> Since that involves tweaking the kernel settings, taking the site down
> and rebooting postgres and exposing the system to all kinds of risks and
> unknowns and expensive experimentations I was unable to do it and have
> had to hobble along with a slow table in my backend holding up jobs.
>
> Much swearing that nobody should ever do VACUUM FULL.  Manual advises
> against it.  Only crazy people do that.

<snip>

> moral of the story:  if your table is really bloated, just do VACUUM FULL

You'll need to reindex that table now - vacuum full can bloat your 
indexes which will affect your other queries.

reindex table fastadder_fastadderstatus;

-- 
Postgresql & php tutorials
http://www.designmagick.com/




view thread (5+ messages)  latest in thread

Message-ID: <4D89760A.3040109@gmail.com>
Permalink:  ../4D89760A.3040109@gmail.com/
Also on:    postgresql.org/message-id/4D89760A.3040109@gmail.com

 · 

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: dmagick@gmail.com
  Subject: Re: good old VACUUM FULL
  In-Reply-To: <4D89760A.3040109@gmail.com>

* 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