Re: autovacuum questions - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: autovacuum questions
Date
Msg-id dcc563d10810311131h68980c73gdfc6ada9bdfda12@mail.gmail.com
Whole thread Raw
In response to Re: autovacuum questions  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-admin
On Fri, Oct 31, 2008 at 10:02 AM, Alvaro Herrera
<alvherre@commandprompt.com> wrote:
> Rafael Domiciano escribió:
>
>> The vacuum is not full, to run a full vacuum you need to set a cron job;
>> better to run at the night.
>
> Doing VACUUM FULL on crontab is rarely a good idea.  If you find
> yourself in a situation where you need VACUUM FULL, then you've not
> tuned regular vacuum appropriately.

There are some use cases where vacuum full is appropriate.  But
they're rare.  And they're usually better off being added to whatever
script is doing the thing that causes the database to need vacuum
full.  Certain batch processing or data loading processes need vacuum
full and or reindex when finishing.

But the common thought process on vacuum full for most people is "If
vacuum is good, vacuum full must be even better!" which is just wrong.

pgsql-admin by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: autovacuum questions
Next
From: Peter Hinse
Date:
Subject: hanging INSERT statements with subselect