Re: Autovaccum

Поиск
Список
Период
Сортировка
От Shane Ambler
Тема Re: Autovaccum
Дата
Msg-id 456EF47D.1010800@007Marketing.com
обсуждение исходный текст
Ответ на Re: Autovaccum  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-sql
Alvaro Herrera wrote:
> Ezequias Rodrigues da Rocha wrote:
>> Hi list,
>>
>> I would like to know if it is necessary to set my database to
>> autovaccum if the intent of my DB Manager is do not make any deletion
>> in any time.
>>
>> If there is no deletions why autovaccum ok ?>
> You need to vacuum from time to time anyway, even if you don't delete
> anything.  The easiest way to do it is let autovacuum do it for you.
> 

One thing that vacuum/autovacuum does is mark space used by deleted rows 
to be reused. Without deletes this won't be necessary in table data 
files. But when you update a record an index may also be updated and 
have the same effect within the index storage space.

There are other things that vacuum does to keep your database running 
optimally. One is to update planner statistics about how many rows are 
in each table which effects the query planning and optimizing.

Without deletes a plain vacuum won't achieve a great deal, but a regular 
VACUUM ANALYZE (as done by autovacuum) will make a difference to the 
performance of your database.

If no data in your db changes then you won't have to bother vacuuming.

-- 

Shane Ambler
pgSQL@007Marketing.com

Get Sheeky @ http://Sheeky.Biz


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Ezequias Rodrigues da Rocha"
Дата:
Сообщение: Re: Autovaccum
Следующее
От: "Travis Whitton"
Дата:
Сообщение: pg_xlog on separate drive