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

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: What's The Difference Between VACUUM and VACUUM ANALYZE?
Дата
Msg-id 20070508222102.GD24167@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: What's The Difference Between VACUUM and VACUUM ANALYZE?  ("Steinar H. Gunderson" <sgunderson@bigfoot.com>)
Ответы Re: What's The Difference Between VACUUM and VACUUM ANALYZE?  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-performance
Steinar H. Gunderson wrote:
> On Tue, May 08, 2007 at 05:52:13PM -0400, Alvaro Herrera 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.
> > VACUUM ANALYZE is like VACUUM, except that it also runs an ANALYZE
> > afterwards.
>
> Shoot me if I'm wrong here, but doesn't VACUUM ANALYZE check _all_ tuples,
> as compared to the random selection employed by ANALYZE?

You are wrong, but it won't be me the one to shoot you.

There have been noises towards making the ANALYZE portion use the same
scan that VACUUM already does, but nobody has written the code (it would
be useful for some kinds of stats).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: "Steinar H. Gunderson"
Дата:
Сообщение: Re: What's The Difference Between VACUUM and VACUUM ANALYZE?
Следующее
От: Carlos Moreno
Дата:
Сообщение: Re: Throttling PostgreSQL's CPU usage