From aeb702399e2c40843cae183787b957910219de94 Mon Sep 17 00:00:00 2001 From: Vyacheslav Kompan Date: Mon, 20 Nov 2023 23:00:19 +0500 Subject: [PATCH] Remove alternative solution comment --- src/backend/optimizer/path/allpaths.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c index 1ad8b2d8b369..15af5b9aa3d6 100644 --- a/src/backend/optimizer/path/allpaths.c +++ b/src/backend/optimizer/path/allpaths.c @@ -2136,9 +2136,6 @@ set_cte_pathlist(PlannerInfo *root, RelOptInfo *rel, RangeTblEntry *rte) * Create another ShareInputScan to reference the already-created * subplan if not avoiding sharing. Sharing SegmentGeneral subplan may * lead to deadlock when executed with 1-gang and joined with Hashed. - * Forcing locus to Replicated leads to redundant motions if we join - * shared plan with another SegmentGeneral node. Thus, we should avoid - * sharing SegmentGeneral subplans. */ if (cteplaninfo->subplan->flow->locustype != CdbLocusType_SegmentGeneral) {