Re: Is clustering factor stored in pg_stats.correlation? - Mailing list pgsql-general

From Tom Lane
Subject Re: Is clustering factor stored in pg_stats.correlation?
Date
Msg-id 11526.1419118131@sss.pgh.pa.us
Whole thread Raw
In response to Is clustering factor stored in pg_stats.correlation?  (AlexK987 <alex.cue.987@gmail.com>)
Responses Re: Is clustering factor stored in pg_stats.correlation?
List pgsql-general
AlexK987 <alex.cue.987@gmail.com> writes:
> I believe that tables' clustering factors are stored in pg_stats.correlation.

Dunno what you mean by "clustering factor", but pg_stats.correlation
stores the correlation coefficient between the sequence of the column's
data values and the sequence of their physical order.  Correlation
coefficient is defined in the usual way:
http://en.wikipedia.org/wiki/Pearson_product-moment_correlation_coefficient
so it ranges between +1 in your example (perfect ordering) and -1
(perfect descending order).

            regards, tom lane


pgsql-general by date:

Previous
From: AlexK987
Date:
Subject: Is clustering factor stored in pg_stats.correlation?
Next
From: AlexK987
Date:
Subject: Re: Is clustering factor stored in pg_stats.correlation?