Minmax indexes

https://commitfest.postgresql.org/action/patch_view?id=1234
http://archives.postgresql.org/message-id/20130925203420.GW4832@eldon.alvh.no-ip.org