On Mon, 3 Oct 2022 at 08:10, Tom Lane <t...@sss.pgh.pa.us> wrote: > As attached.
For the master version, I think it's safe just to get rid of PlannerInfo.num_groupby_pathkeys now. I only added that so I could strip off the ORDER BY / DISTINCT aggregate PathKeys from the group by pathkeys before passing to the functions that rearranged the GROUP BY clause. David