Re: Auto-ANALYZE?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Auto-ANALYZE?
Дата
Msg-id 26268.1179964558@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Auto-ANALYZE?  (Craig James <craig_james@emolecules.com>)
Список pgsql-performance
Craig James <craig_james@emolecules.com> writes:
> Auto-vacuum has made Postgres a much more "friendly" system.  Is there some reason the planner can't also
auto-ANALYZEin some situations? 

autovacuum handles analyze too.  Trying to make the planner do it is
a crummy idea for a couple of reasons:

* unpredictable performance if queries sometimes go off for a few
  seconds to collect stats
* pg_statistics update requires semi-exclusive lock
* work is lost if transaction later rolls back

            regards, tom lane

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

Предыдущее
От: Craig James
Дата:
Сообщение: Auto-ANALYZE?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PERFORM] does VACUUM ANALYZE complete with this error?