index selection by query planner

From: Rohit Gaddi <rohitgaddi(at)yahoo(dot)co(dot)in>
To: pgsql-performance(at)postgresql(dot)org
Subject: index selection by query planner
Date: 2005-06-21 07:48:50
Message-ID: 20050621074855.77673.qmail@web8306.mail.in.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

Browse pgsql-performance by date

  From Date Subject
Next Message Alex Stapleton 2005-06-21 10:04:45 Re: autovacuum suggestions for 500,000,000+ row tables?
Previous Message Rohit Gaddi 2005-06-21 07:42:23 index selection by query planner