Re: What's The Difference Between VACUUM and VACUUM ANALYZE?

Поиск
Список
Период
Сортировка
От david@lang.hm
Тема Re: What's The Difference Between VACUUM and VACUUM ANALYZE?
Дата
Msg-id Pine.LNX.4.64.0705081443550.29403@asgard.lang.hm
обсуждение исходный текст
Ответ на What's The Difference Between VACUUM and VACUUM ANALYZE?  ("Y Sidhu" <ysidhu@gmail.com>)
Список pgsql-performance
On Tue, 8 May 2007, Y Sidhu wrote:

> I am trying to follow a message thread. One guy says we should be running
> vacuum analyze daily and the other says we should be running vacuum multiple
> times a day. I have tried looking for what a vacuum analyze is to help me
> understand but no luck.

vaccum frees tuples that are no longer refrenced
vaccum analyse does the same thing, but then does some additional
information gathering about what data is in the tables Postgres uses this
data to adjust it's estimates of how long various things will take
(sequential scan, etc). if these estimates are off by a huge amount
(especially if you have never done a vaccum analyse after loading your
table) then it's very likely that postgres will be slow becouse it's doing
expensive operations that it thinks are cheap.

David Lang

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

Предыдущее
От: "Steinar H. Gunderson"
Дата:
Сообщение: Re: [PERFORM] specific query (not all) on Pg8 MUCH slower than Pg7
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: What's The Difference Between VACUUM and VACUUM ANALYZE?