Re: Sequential Scan with LIMIT - Mailing list pgsql-performance

From Tom Lane
Subject Re: Sequential Scan with LIMIT
Date
Msg-id 9172.1099007368@sss.pgh.pa.us
Whole thread Raw
In response to Re: Sequential Scan with LIMIT  ("Jim C. Nasby" <decibel@decibel.org>)
Responses Re: Sequential Scan with LIMIT
List pgsql-performance
"Jim C. Nasby" <decibel@decibel.org> writes:
> On Sun, Oct 24, 2004 at 04:11:53PM -0400, Tom Lane wrote:
>> The test case you are showing is probably suffering from nonrandom
>> placement of this particular data value; which is something that the
>> statistics we keep are too crude to detect.

> Isn't that exactly what pg_stats.correlation is?

No.  A far-from-zero correlation gives you a clue that on average, *all*
the data values are placed nonrandomly ... but it doesn't really tell
you much one way or the other about a single data value.

            regards, tom lane

pgsql-performance by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Sequential Scan with LIMIT
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Sequential Scan with LIMIT