diff options
Diffstat (limited to 'src/backend/optimizer/path/allpaths.c')
-rw-r--r-- | src/backend/optimizer/path/allpaths.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c index ec27c1a4994..9c6436eb72f 100644 --- a/src/backend/optimizer/path/allpaths.c +++ b/src/backend/optimizer/path/allpaths.c @@ -3449,7 +3449,7 @@ generate_grouped_paths(PlannerInfo *root, RelOptInfo *grouped_rel, * We push partial aggregation only to the lowest possible level in the * join tree that is deemed useful. */ - if (!bms_equal(agg_info->apply_at, rel->relids) || + if (!bms_equal(agg_info->apply_agg_at, rel->relids) || !agg_info->agg_useful) return; |