Re: pg_stats question - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_stats question
Date
Msg-id 3878.1073540954@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_stats question  (Joseph Shraibman <jks@selectacast.net>)
List pgsql-general
Joseph Shraibman <jks@selectacast.net> writes:
> Tom Lane wrote:
>> As a trivial counterexample, if you have less than 100 distinct values
>> in your column, there definitely won't be 100 values in the
>> most-common-values list ...

> Right, but in this case I'm sure I have over 200 values.

Still, ANALYZE might not have seen all of them within its sample set of
rows.  There's inherently some sampling error involved in the process
(at least in 7.2 and later).

I don't believe 7.4 has any significant difference from 7.3 in this
area.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problem with rserv replication
Next
From: Peter Eisentraut
Date:
Subject: Re: Perl and Python modules problem