On Wed, 2006-03-15 at 14:17 -0500, Tom Lane wrote:
> It looks to me like this is a matter of bad cost estimation, ie, it's
> thinking the other index is cheaper to use. Why that is is not clear.
> Can we see the pg_stats rows for ctofcNo and calDate?
ISTM that when the BETWEEN constants match we end up in this part of
clauselist_selectivity()...