index selection by query planner - Mailing list pgsql-general

From Rohit Gaddi
Subject index selection by query planner
Date
Msg-id 20050620194833.95841.qmail@web8307.mail.in.yahoo.com
Whole thread Raw
Responses Re: index selection by query planner
List pgsql-general
Hi,
 
I have a table with two indices on the same column, one of which is a partial index. I would like the query planner to use the partial index whenever the query condition lies in the range of the partial index as it would yield better performance. Is there any way to enforce the ordering for the indices? How does the query planner decide which index to use when a particular query is fired?  'Explain Analyze' showed the total index being used in a situation that could be fulfiled by the partial index.
 
Thanks,
Rohit
 


How much free photo storage do you get? Store your friends n family photos for FREE with Yahoo! Photos.
http://in.photos.yahoo.com

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: 8.03 postgres install error
Next
From: Tom Lane
Date:
Subject: Re: index selection by query planner