Re: Plans for solving the VACUUM problem

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Plans for solving the VACUUM problem
Дата
в 00:52:46
Msg-id
13654.990161560@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
RE: Plans for solving the VACUUM problem "Henshall, Stuart - WCP" <SHenshall@westcountrypublications.co.uk>
mlw  writes:
> My only suggestion would be to store some information in the statistics about
> whether or not, and how bad, a table needs to be vacuumed.

I was toying with the notion of using the FSM to derive that info,
somewhat indirectly to be sure (since what the FSM could tell you would
be about tuples inserted not tuples deleted).  Heavily used FSM entries
would be the vacuum daemon's cues for tables to hit more often.

ANALYZE stats don't seem like a productive way to attack this, since
there's no guarantee they'd be updated often enough.  If the overall
data distribution of a table isn't changing much, there's no need to
analyze it often.  

> Also, it would be good to be able to update the statistics without doing a
> vacuum, i.e. rather than having to vacuum to analyze, being able to analyze
> without a vacuum.

Irrelevant, not to mention already done ...
		regards, tom lane

В списке pgsql-hackers по дате отправления
От: Matthew T. O'Connor
Дата:
От: Tim Allen
Дата:
FAQ