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

From Tom Lane
Subject Re: Query not using index despite high statistics
Date
Msg-id 3615.1178294991@sss.pgh.pa.us
Whole thread Raw
In response to Query not using index despite high statistics  (Henrik Zagerholm <henke@mac.se>)
Responses Re: Query not using index despite high statistics
List pgsql-general
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.

            regards, tom lane

pgsql-general by date:

Previous
From: Kevin Murphy
Date:
Subject: Re: Permission denied to create database
Next
From: "Mike Frysinger"
Date:
Subject: Re: cant get pg_dump/pg_restore to behave