Re: How to tell ANALYZE to collect statistics from the whole table?

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Re: How to tell ANALYZE to collect statistics from the whole table?
Дата
Msg-id 54C4452E.9050505@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: How to tell ANALYZE to collect statistics from the whole table?  (AlexK987 <alex.cue.987@gmail.com>)
Список pgsql-performance
On 25.1.2015 02:04, AlexK987 wrote:
> Tomas,
>
> Thank you for a very useful reply. Right now I do not have a case of
> poor performance caused by strong data skew which is not properly
> reflected in statistics. I was being defensive, trying to prevent
> every possible thing that might go wrong.

OK. My recommendation is not to mess with default_statistics unless you
actually have to (e.g. increasing the value on all tables, withouth a
query where the current value causes trouble). It increases time to plan
the queries, collect statistics (ANALYZE / autovacuum) etc.

regards
--
Tomas Vondra                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: AlexK987
Дата:
Сообщение: Re: How to tell ANALYZE to collect statistics from the whole table?
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: Initial insert