Greg Stark <gsstark(at)mit(dot)edu> writes:
> then it would be a candidate because the ORDER BY or the other > 0 make the
> index look relevant. But I don't think (again I'm not 100% sure) that the
> partial index WHERE clause is considered in picking which indexes to consider.
Nope, the partial index will be considered simply on the strength of its
predicate matching the WHERE clause.
Of course, if you can get some additional mileage by having the index
contents be useful, that's great --- but it's not necessary.
regards, tom lane