aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execMain.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-12-08 14:59:46 -0500
committerRobert Haas <rhaas@postgresql.org>2016-12-08 14:59:46 -0500
commit01ae881e1c83ddb79df0a5cf6cee38c3ce4a327b (patch)
tree7aea61625792b217481bc80509186b2fc9dff8b6 /src/backend/executor/execMain.c
parentab4575dcf18fad1bc20d4a1bde6dc33c8d2561b6 (diff)
downloadpostgresql-01ae881e1c83ddb79df0a5cf6cee38c3ce4a327b.tar.gz
postgresql-01ae881e1c83ddb79df0a5cf6cee38c3ce4a327b.zip
Fix bogus comment.
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.
Diffstat (limited to 'src/backend/executor/execMain.c')
-rw-r--r--src/backend/executor/execMain.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c
index 0f47c7e0104..d43a2048080 100644
--- a/src/backend/executor/execMain.c
+++ b/src/backend/executor/execMain.c
@@ -1550,9 +1550,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;