From: | Rohit Gaddi <rohitgaddi(at)yahoo(dot)co(dot)in> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org |
Subject: | index selection by query planner |
Date: | 2005-06-20 19:48:33 |
Message-ID: | 20050620194833.95841.qmail@web8307.mail.in.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Zlatko Matić | 2005-06-20 19:48:51 | Re: user/groups query ? |
Previous Message | Bart Grantham | 2005-06-20 19:27:41 | Odd performance issue |
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2005-06-20 19:55:45 | Re: pg_locks view versus prepared transactions |
Previous Message | Heikki Linnakangas | 2005-06-20 19:40:02 | Re: HOOKS for Synchronous Replication |