Don't pass the grouping target around unnecessarily.
authorRobert Haas <rhaas@postgresql.org>
Tue, 20 Mar 2018 15:33:44 +0000 (11:33 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 20 Mar 2018 15:37:43 +0000 (11:37 -0400)
commit94150513ec12c13eb7c98430fc34f477896d38c9
treeb95beafe1e02f8d341753da2360e3c6896ad7344
parentb6cbe9ea1a6e6879926318158d73d430c14aca90
Don't pass the grouping target around unnecessarily.

Since commit 4f15e5d09de276fb77326be5567dd9796008ca2e made grouped_rel
set reltarget, a variety of other functions can just get it from
grouped_rel instead of having to pass it around explicitly.  Simplify
accordingly.

Patch by me, reviewed by Ashutosh Bapat.

Discussion: http://postgr.es/m/CA+TgmoZ+ZJTVad-=vEq393N99KTooxv9k7M+z73qnTAqkb49BQ@mail.gmail.com
src/backend/optimizer/plan/planner.c
src/backend/optimizer/util/pathnode.c
src/include/optimizer/pathnode.h