Re: Bloated tables and why is vacuum full the only option

Поиск
Список
Период
Сортировка
От Claudio Freire
Тема Re: Bloated tables and why is vacuum full the only option
Дата
Msg-id CAGTBQpZH5eFK0L62U_2YRJNcwDoxEwv9qs+5DF31+0Vcx9MVxw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Bloated tables and why is vacuum full the only option  (Tomas Vondra <tv@fuzzy.cz>)
Ответы Re: Bloated tables and why is vacuum full the only option  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
On Sun, Feb 9, 2014 at 12:50 PM, Tomas Vondra <tv@fuzzy.cz> wrote:
> On 7.2.2014 19:47, Claudio Freire wrote:
>>
>> Question is... why isn't all that free space being used? The table
>> grows in size even though there's plenty (65%) of free space.
>>
>> I've got autovacuum severely crippled and that could be a reason, but
>> I do perform regular vacuum runs weekly that always run to completion.
>> I also do routine reindexing to stop index bloat on its tracks, yet
>> freshly-reindexed indexes get considerably reduced in size with vacuum
>> full.
>
> Are you logging autovacuum actions? I.e. what is
>
>     log_autovacuum_min_duration
>
> set to? It it's set to -1 you won't get any messages because of
> conflicting locks or stuff like that, which might be the culprit here.

It was set to -1. I set it to 5000 and I'll be keeping an eye on the logs.

> Also, when you're running the weekly VACUUM, do VACUUM (VERBOSE) and
> post it here. That might at least help us eliminate some of the usual
> suspects.

I'm using a cron job for this, I'll see about dumping the results to a
log file and post when it's done.


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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: Bloated tables and why is vacuum full the only option
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bloated tables and why is vacuum full the only option