Fix bogus comment.
authorRobert Haas <rhaas@postgresql.org>
Thu, 8 Dec 2016 19:59:46 +0000 (14:59 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 8 Dec 2016 20:03:07 +0000 (15:03 -0500)
Commit 4212cb73262bbdd164727beffa4c4744b4ead92d 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.

src/backend/executor/execMain.c

index 71c07288a19082d790411a5d2369035ad461cdac..d406ee978326dee2e46f5470c24ef3a7643ba624 100644 (file)
@@ -1540,9 +1540,10 @@ ExecutePlan(EState *estate,
    estate->es_direction = direction;
 
    /*
-    * 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 a tuple count was supplied, we must force the plan to run without
+    * parallelism, because we might exit early.  Also disable parallelism
+    * when writing into a relation, because no database changes are allowed
+    * in parallel mode.
     */
    if (numberTuples || dest->mydest == DestIntoRel)
        use_parallel_mode = false;