Re: When does VACUUM FULL not clean out all deleted data?

From: Geoffrey <lists(at)serioustechnology(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: When does VACUUM FULL not clean out all deleted data?
Date: 2008-01-07 15:53:11
Message-ID: 47824AE7.6000006@serioustechnology.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Scott Marlowe wrote:

> Note that routine vacuum FULL is not a good idea actually. vacuum
> full is something you run when things have gone wrong (i.e. not enough
> regular vacuuming) and it is usually best followed by reindexing all
> your indexes.
>
> It's far better to keep track of bloat and run vacuum full, if at all,
> by hand, and only when needed. Running it regularly with no
> reindexing often results in index bloat which makes the database
> slower not faster.

I've been trying to research this issue. I can't really find
documentation that defines when to 'vacuum full.' That is other then
this posting on the list and the following from the man page:

'The FULL option is not recommended for routine use, but may be useful
in special cases. An example is when you have deleted most of the rows
in a table and would like the table to physically shrink to occupy less
disk space. VACUUM FULL will usually shrink the table more than a plain
VACUUM would.'

So, I'm wondering if anyone can point me to more specific information as
to when, if ever, you should 'vacuum full?'

The more research I do, the more it appears that you should only 'vacuum
full' when you run into space issues.

--
Until later, Geoffrey

Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
- Benjamin Franklin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2008-01-07 16:46:31 Re: Need some info on Postgresql
Previous Message James Cloos 2008-01-05 17:28:27 Re: When does VACUUM FULL not clean out all deleted data?