Convert planner's AggInfo and AggTransInfo structs to proper Nodes.
authorTom Lane <[email protected]>
Tue, 19 Jul 2022 16:29:37 +0000 (12:29 -0400)
committerTom Lane <[email protected]>
Tue, 19 Jul 2022 16:29:37 +0000 (12:29 -0400)
commitd6a3aeb9a37bdbb5aa8ed03a9f95e2b1a1b44ba7
tree3a10100442b306e8c206bf6378015bd0a61c1a59
parente2f6c307c02924e6ee1667890b56280ab1960d2e
Convert planner's AggInfo and AggTransInfo structs to proper Nodes.

This is mostly just to get outfuncs.c support for them, so that
the agginfos and aggtransinfos lists can be dumped when dumping
the contents of PlannerInfo.

While here, improve some related comments; notably, clean up
obsolete comments left over from when preprocess_minmax_aggregates
had to make its own scan of the query tree.

Discussion: https://postgr.es/m/742479.1658160504@sss.pgh.pa.us
src/backend/optimizer/plan/planagg.c
src/backend/optimizer/prep/prepagg.c
src/include/nodes/pathnodes.h