Widening application of indices.

https://commitfest.postgresql.org/action/patch_view?id=1280
http://archives.postgresql.org/message-id/00ad01cef00b$6bae88f0$430b9ad0$@etsuro@lab.ntt.co.jp