Re: What is the right way to deal with a table with rows that are not in a random order? - Mailing list pgsql-general

From Douglas Alan
Subject Re: What is the right way to deal with a table with rows that are not in a random order?
Date
Msg-id ce6334d00905281212s597a94fcvbb0181c76667dc21@mail.gmail.com
Whole thread Raw
In response to Re: What is the right way to deal with a table with rows that are not in a random order?  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: What is the right way to deal with a table with rows that are not in a random order?  (Scott Marlowe <scott.marlowe@gmail.com>)
Re: What is the right way to deal with a table with rows that are not in a random order?  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-general
On Thu, May 28, 2009 at 10:24 AM, Scott Marlowe <scott.marlowe@gmail.com> wrote:

>  OTOH, if you've got it all sussed out, then ignore the request for more information.

I don't *know* if I have it "all sussed out", but I *do* know why
Postgres is doing what it is doing in this particular case.  It's
assuming that the value in question is evenly distributed throughout
the table, when in actuality, the value in question is clustered at
the very end of the table.

What I don't have sussed out his how best to address this issue.

The most obvious solution would be an option to tell Postgres not to
assume that the value is evenly distributed throughout the table, and
to take account of the fact that the data in question might very well
be clustered at the very end of the table.

|>ouglas

pgsql-general by date:

Previous
From: Douglas Alan
Date:
Subject: Re: What is the right way to deal with a table with rows that are not in a random order?
Next
From: Osvaldo Kussama
Date:
Subject: Re: How to pass parameters into a sql script ?