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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy