Re: insane index scan times

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Sergei Shelukhin <realgeek(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: insane index scan times
Date: 2007-06-08 17:27:04
Message-ID: 20070608172704.GD9818@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jun 07, 2007 at 11:20:20AM -0700, Sergei Shelukhin wrote:
> Version is 8.1
> The query I originally ran returned ~4-5 rows and had a lot of other
> joins and filtering conditions prior to the join with the big table.
> Is there any way to instruct postgres to do joins in the specific
> order or smth?

Not really, Postgres can rearrange joins into the order it works out to
be the best.

You need to check whether the statistics on your columns are good, so
postgres can make a good estimate.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Billings, John 2007-06-08 17:46:25 Using the GPU
Previous Message Billings, John 2007-06-08 17:26:20 Using the power of the GPU