Re: How to tell ANALYZE to collect statistics from the whole table? - Mailing list pgsql-performance

From Tomas Vondra
Subject Re: How to tell ANALYZE to collect statistics from the whole table?
Date
Msg-id 54C4452E.9050505@2ndquadrant.com
Whole thread Raw
In response to Re: How to tell ANALYZE to collect statistics from the whole table?  (AlexK987 <alex.cue.987@gmail.com>)
List 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 by date:

Previous
From: AlexK987
Date:
Subject: Re: How to tell ANALYZE to collect statistics from the whole table?
Next
From: Tomas Vondra
Date:
Subject: Re: Initial insert