From: | Robert Haas <rhaas(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix mistaken failure to allow parallelism in corner case. |
Date: | 2017-10-27 14:12:38 |
Message-ID: | E1e85NG-0000aX-4g@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix mistaken failure to allow parallelism in corner case.
If we try to run a parallel plan in serial mode because, for example,
it's going to be scanned via a cursor, but for some reason we're
already in parallel mode (for example because an outer query is
running in parallel), we'd incorrectly try to launch workers.
Fix by adding a flag to the EState, so that we can be certain that
ExecutePlan() and ExecGather()/ExecGatherMerge() will have the same
idea about whether we are executing serially or in parallel.
Report and fix by Amit Kapila with help from Kuntal Ghosh. A few
tweaks by me.
Discussion: http://postgr.es/m/CAA4eK1+_BuZrmVCeua5Eqnm4Co9DAXdM5HPAOE2J19ePbR912Q@mail.gmail.com
Branch
------
REL9_6_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/036b6bd50365b9ae6ec0b4cb21d172510ef440a9
Modified Files
--------------
src/backend/executor/execMain.c | 5 +----
src/backend/executor/execUtils.c | 2 ++
src/backend/executor/nodeGather.c | 2 +-
src/include/nodes/execnodes.h | 2 ++
4 files changed, 6 insertions(+), 5 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2017-10-27 14:19:34 | Re: pgsql: Fix mistaken failure to allow parallelism in corner case. |
Previous Message | Tom Lane | 2017-10-26 20:00:22 | pgsql: Support domains over composite types in PL/Tcl. |