Re: Query not using index despite high statistics

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Henrik Zagerholm <henke(at)mac(dot)se>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Query not using index despite high statistics
Date: 2007-05-04 16:09:51
Message-ID: 3615.1178294991@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Henrik Zagerholm <henke(at)mac(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sebastian Hennebrueder 2007-05-04 16:40:13 Re: Feature Request --- was: PostgreSQL Performance Tuning
Previous Message Kevin Murphy 2007-05-04 16:00:04 Re: Permission denied to create database