Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fedb37d

Browse files
committed
3
1 parent ef59827 commit fedb37d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/optimizer/plan/planner.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,10 @@ grouping_planner(PlannerInfo *root, double tuple_fraction,
14241424
}
14251425
else if (parse->groupClause)
14261426
{
1427-
/* Preprocess regular GROUP BY clause, if any */
1427+
/*
1428+
* Make a copy of origin groupClause because we are going to
1429+
* remove redundant clauses.
1430+
*/
14281431
root->processed_groupClause = list_copy(parse->groupClause);
14291432
/* Remove any redundant GROUP BY columns */
14301433
remove_useless_groupby_columns(root);

0 commit comments

Comments
 (0)