Content-Length: 267282 | pFad | http://github.com/postgrespro/postgres_cluster/commit/01ae881e1c83ddb79df0a5cf6cee38c3ce4a327b

D3 Fix bogus comment. · postgrespro/postgres_cluster@01ae881 · GitHub
Skip to content

Commit 01ae881

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 ab4575d commit 01ae881

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
@@ -1550,9 +1550,10 @@ ExecutePlan(EState *estate,
15501550
estate->es_direction = direction;
15511551

15521552
/*
1553-
* If a tuple count was supplied or data is being written to relation, we
1554-
* must force the plan to run without parallelism, because we might exit
1555-
* early.
1553+
* If a tuple count was supplied, we must force the plan to run without
1554+
* parallelism, because we might exit early. Also disable parallelism
1555+
* when writing into a relation, because no database changes are allowed
1556+
* in parallel mode.
15561557
*/
15571558
if (numberTuples || dest->mydest == DestIntoRel)
15581559
use_parallel_mode = false;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/01ae881e1c83ddb79df0a5cf6cee38c3ce4a327b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy