pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
index selection by query planner 2+ messages / 1 participants [nested] [flat]
* index selection by query planner @ 2005-06-21 07:42 Rohit Gaddi <rohitgaddi@yahoo.co.in> 0 siblings, 0 replies; 2+ messages in thread From: Rohit Gaddi @ 2005-06-21 07:42 UTC (permalink / raw) To: 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
* index selection by query planner @ 2005-06-21 07:48 Rohit Gaddi <rohitgaddi@yahoo.co.in> 0 siblings, 0 replies; 2+ messages in thread From: Rohit Gaddi @ 2005-06-21 07:48 UTC (permalink / raw) To: 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-06-21 07:48 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2005-06-21 07:42 index selection by query planner Rohit Gaddi <rohitgaddi@yahoo.co.in> 2005-06-21 07:48 index selection by query planner Rohit Gaddi <rohitgaddi@yahoo.co.in>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox