Re: Index non-usage problem in 8.2.9

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joseph S <jks(at)selectacast(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Index non-usage problem in 8.2.9
Date: 2008-09-03 03:59:45
Message-ID: 12195.1220414385@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joseph S <jks(at)selectacast(dot)net> writes:
> Tom Lane wrote:
>> Can you force it to use the partial index by dropping the other index?
>> (Use begin; drop index ...; explain ...; rollback; to avoid dropping
>> the index for real.) It's quite unclear at this point whether it

> I tried, and it ends up using a seqscan.

Just to be sure, what if you set enable_seqscan = off?

If still not, then there must be something about the table or index
declaration that you didn't tell us. In the past, issues like use of
a domain instead of a bare datatype have been relevant ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Artacus 2008-09-03 04:09:26 Re: Oracle and Postgresql
Previous Message Joseph S 2008-09-03 03:51:09 Re: Index non-usage problem in 8.2.9