Re: Vacuum becomes slow

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Vacuum becomes slow
Дата
Msg-id 18107.1120138261@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Vacuum becomes slow  (Martin Lesser <ml-pgsql@bettercom.de>)
Список pgsql-performance
Martin Lesser <ml-pgsql@bettercom.de> writes:
> the time needed for a daily VACUUM on a table with about 28 mio records
> increases from day to day.

My guess is that the original timings were artificially low because the
indexes were in nearly perfect physical order, and as that condition
degrades over time, it takes longer for VACUUM to scan them.  If that's
the right theory, the runtime should level off soon, and maybe you don't
need to do anything.  You could REINDEX periodically but I think the
time taken to do that would probably be more than you want to spend
(especially since REINDEX locks out writes where VACUUM does not).

You should check that your FSM settings are large enough, but given that
the table itself doesn't seem to be bloating, that's probably not the
issue.

            regards, tom lane

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

Предыдущее
От: "philippe ventrillon"
Дата:
Сообщение: Re: slow simple update?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ODBC driver over network very slow