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

From: Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: How to tell ANALYZE to collect statistics from the whole table?
Date: 2015-01-25 01:21:50
Message-ID: 54C4452E.9050505@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tomas Vondra 2015-01-25 01:29:27 Re: Initial insert
Previous Message AlexK987 2015-01-25 01:04:31 Re: How to tell ANALYZE to collect statistics from the whole table?