Re: Postgresql 8.3 statistic stadistinct value dead wrong even with default_statistics_target=1000

From: Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Maxim Boguk <mboguk(at)masterhost(dot)ru>, pgsql-general(at)postgresql(dot)org
Subject: Re: Postgresql 8.3 statistic stadistinct value dead wrong even with default_statistics_target=1000
Date: 2008-08-30 03:08:03
Message-ID: 48B8B993.7040704@cheapcomplexdevices.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Maxim Boguk <mboguk(at)masterhost(dot)ru> writes:
>> [ ndistinct estimates way off ]
>
> Estimating the number of distinct values in a distribution with a long
> tail is just a really hard problem :-(

If I have a table where I know it has this property, is there
any way I can tell autovacuum's ANALYZE to go ahead and scan
the whole table? ISTM a vacuum_cost_delay throttled full
table scan might be less harmful then a bad ndistinct guess.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-08-30 03:16:32 Re: SELECT INTO returns incorrect values
Previous Message Tom Lane 2008-08-30 02:58:34 Re: Indexing problem with OFFSET LIMIT