WITHIN GROUP

https://commitfest.postgresql.org/action/patch_view?id=1181
http://archives.postgresql.org/message-id/CAOeZVifC_rmft_McHkTSH3tmhruvA6FEfLakoUi2uQyGyA3Ojg@mail.gmail.com