diff options
Diffstat (limited to 'src/backend/executor/execMain.c')
-rw-r--r-- | src/backend/executor/execMain.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index 32bb3f92054..71c07288a19 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -1540,10 +1540,11 @@ ExecutePlan(EState *estate, estate->es_direction = direction; /* - * If a tuple count was supplied, we must force the plan to run without - * parallelism, because we might exit early. + * If a tuple count was supplied or data is being written to relation, we + * must force the plan to run without parallelism, because we might exit + * early. */ - if (numberTuples) + if (numberTuples || dest->mydest == DestIntoRel) use_parallel_mode = false; /* |