Skip to content

Commit 86c6aaf

Browse files
committed
Fix bogus comment.
Commit 4212cb7 rendered a comment in execMain.c incorrect. Per complaint from Tom Lane, repair. Patch from Amit Kapila, per wording suggested by Tom Lane and me.
1 parent 1ed3c6f commit 86c6aaf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/backend/executor/execMain.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,9 +1540,10 @@ ExecutePlan(EState *estate,
15401540
estate->es_direction = direction;
15411541

15421542
/*
1543-
* If a tuple count was supplied or data is being written to relation, we
1544-
* must force the plan to run without parallelism, because we might exit
1545-
* early.
1543+
* If a tuple count was supplied, we must force the plan to run without
1544+
* parallelism, because we might exit early. Also disable parallelism
1545+
* when writing into a relation, because no database changes are allowed
1546+
* in parallel mode.
15461547
*/
15471548
if (numberTuples || dest->mydest == DestIntoRel)
15481549
use_parallel_mode = false;

0 commit comments

Comments
 (0)