Commit 01ae881e authored by Robert Haas's avatar Robert Haas

Fix bogus comment.

Commit 4212cb73 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.
parent ab4575dc
...@@ -1550,9 +1550,10 @@ ExecutePlan(EState *estate, ...@@ -1550,9 +1550,10 @@ ExecutePlan(EState *estate,
estate->es_direction = direction; estate->es_direction = direction;
/* /*
* If a tuple count was supplied or data is being written to relation, we * If a tuple count was supplied, we must force the plan to run without
* must force the plan to run without parallelism, because we might exit * parallelism, because we might exit early. Also disable parallelism
* early. * when writing into a relation, because no database changes are allowed
* in parallel mode.
*/ */
if (numberTuples || dest->mydest == DestIntoRel) if (numberTuples || dest->mydest == DestIntoRel)
use_parallel_mode = false; use_parallel_mode = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment