On Thu, 14 Mar 2024 at 12:00, David Rowley <dgrowle...@gmail.com> wrote: > I've attached a patch which fixes the problem for me.
I've pushed the patch to fix gather_grouping_paths(). The issue with the RelOptInfo having the incorrect PathTarget->exprs after the partial phase of partition-wise aggregate remains. David