Proof of concept initial patch for enabling index only scans for partial
indices even when an attribute is not in the target list, as long as it is
only used in restriction clauses that can be proved by the index predicate.
This also works for index quals, though they still can't be used in the target
list.  However, this patch may be inefficient since it duplicates effort that
is currently delayed until after the best plan is chosen.