Re: Query not using index despite high statistics - Mailing list pgsql-general

From Henrik Zagerholm
Subject Re: Query not using index despite high statistics
Date
Msg-id D750EFBB-5A8E-47F9-878B-4D33B4D1FDD0@mac.se
Whole thread Raw
In response to Re: Query not using index despite high statistics  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
4 maj 2007 kl. 18:09 skrev Tom Lane:

> Henrik Zagerholm <henke@mac.se> writes:
>> I have a SELECT  query that uses Seq scans instead of index scan
>> despite that the index scan is faster.
>
> Try 8.2, it's a bit smarter about the costs of repeated indexscans
> on the inside of a nestloop.
>
Ahh sorry for forgetting the db version.
We are actually using 8.2.3.

Cheers, henrik

pgsql-general by date:

Previous
From: "Paolo Saudin"
Date:
Subject: R: R: Postgres 8.3-dev
Next
From: Tom Lane
Date:
Subject: Re: query not using index