diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-12-08 14:59:46 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-12-08 15:03:07 -0500 |
commit | 86c6aaff6ead3e00a89fd0743195678bbc69790c (patch) | |
tree | ef1677da925ff6c5f8aa404bdc9c8db6280996ac | |
parent | 1ed3c6ff9ef411771d4a9fc9a82c3adea0d6ab3b (diff) | |
download | postgresql-86c6aaff6ead3e00a89fd0743195678bbc69790c.tar.gz postgresql-86c6aaff6ead3e00a89fd0743195678bbc69790c.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.
-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 71c07288a19..d406ee97832 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -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; |