diff --git a/src/backend/distributed/planner/multi_router_planner.c b/src/backend/distributed/planner/multi_router_planner.c index 19d386343..6e22f970f 100644 --- a/src/backend/distributed/planner/multi_router_planner.c +++ b/src/backend/distributed/planner/multi_router_planner.c @@ -1027,6 +1027,9 @@ ModifyQuerySupported(Query *queryTree, Query *originalQuery, bool multiShardQuer } else if (rangeTableEntry->rtekind == RTE_VALUES || rangeTableEntry->rtekind == RTE_RESULT +#if PG_VERSION_NUM >= PG_VERSION_18 + || rangeTableEntry->rtekind == RTE_GROUP /* Accept synthetic GROUP */ +#endif ) { /* do nothing, this type is supported */