diff --git a/src/backend/optimizer/plan/createplan.c b/src/backend/optimizer/plan/createplan.c index 1904d143f4c..4e159562ce0 100644 --- a/src/backend/optimizer/plan/createplan.c +++ b/src/backend/optimizer/plan/createplan.c @@ -4194,6 +4194,7 @@ create_bitmap_subplan(PlannerInfo *root, Path *bitmapqual, plan->plan_width = 0; /* meaningless */ plan->parallel_aware = false; plan->parallel_safe = ipath->path.parallel_safe; + plan->locustype = ipath->path.locus.locustype; /* Extract original index clauses, actual index quals, relevant ECs */ subquals = NIL; subindexquals = NIL; diff --git a/src/test/regress/expected/gp_parallel.out b/src/test/regress/expected/gp_parallel.out index 23bba396d3d..e80fe8a0f54 100644 --- a/src/test/regress/expected/gp_parallel.out +++ b/src/test/regress/expected/gp_parallel.out @@ -224,7 +224,7 @@ explain(locus, costs off) select c2 from t1; Locus: HashedWorkers Parallel Workers: 2 -> Bitmap Index Scan on t1_c2_idx - Locus: NULL + Locus: Hashed Optimizer: Postgres query optimizer (8 rows) @@ -243,7 +243,7 @@ explain(locus, costs off) select count(c2) from t1; Locus: HashedWorkers Parallel Workers: 2 -> Bitmap Index Scan on t1_c2_idx - Locus: NULL + Locus: Hashed Optimizer: Postgres query optimizer (13 rows) @@ -266,7 +266,7 @@ explain(locus, costs off) select count(c2) from t1; -> Bitmap Heap Scan on t1 Locus: Hashed -> Bitmap Index Scan on t1_c2_idx - Locus: NULL + Locus: Hashed Optimizer: Postgres query optimizer (11 rows)