WITHIN GROUP

https://commitfest.postgresql.org/action/patch_view?id=1181
http://archives.postgresql.org/message-id/878uyzhcaj.fsf@news-spur.riddles.org.uk