Re: autovacuum questions

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: autovacuum questions
Дата
Msg-id dcc563d10810311131h68980c73gdfc6ada9bdfda12@mail.gmail.com
обсуждение исходный текст
Ответ на Re: autovacuum questions  (Alvaro Herrera <alvherre@commandprompt.com>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: autovacuum questions
Следующее
От: Peter Hinse
Дата:
Сообщение: hanging INSERT statements with subselect