Doug Y <dylists@ptd.net> writes:
> Is there any way to get this query to use the correct index condition so
> that it runs in a reasonable amount of time?
I think CVS tip (7.5-to-be) would handle this better, but it's hard to
be sure since you didn't provide a self-contained test case.
regards, tom lane