postgresql/src/include/nodes
Robert Haas 036b6bd503 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
2017-10-27 16:12:16 +02:00
..
bitmapset.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
execnodes.h Fix mistaken failure to allow parallelism in corner case. 2017-10-27 16:12:16 +02:00
extensible.h pgindent run for 9.6 2016-06-09 18:02:36 -04:00
lockoptions.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
makefuncs.h Fix CREATE MATVIEW/CREATE TABLE AS ... WITH NO DATA to not plan the query. 2016-06-27 15:57:50 -04:00
memnodes.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
nodeFuncs.h Refactor to reduce code duplication for function property checking. 2016-06-10 16:03:46 -04:00
nodes.h Orthography fixes for new castNode() macro. 2017-01-27 08:33:58 -05:00
params.h pgindent run for 9.6 2016-06-09 18:02:36 -04:00
parsenodes.h Teach parser to transform "x IS [NOT] DISTINCT FROM NULL" to a NullTest. 2016-07-28 17:23:13 -04:00
pg_list.h Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:29 -04:00
plannodes.h Update comments to reflect code rearrangement. 2016-08-31 12:39:58 +05:30
primnodes.h Fix assorted fallout from IS [NOT] NULL patch. 2016-07-28 16:09:15 -04:00
print.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
readfuncs.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
relation.h Fix parallel query so it doesn't spoil row estimates above Gather. 2017-03-31 21:10:30 -04:00
replnodes.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
tidbitmap.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
value.h Update copyright for 2016 2016-01-02 13:33:40 -05:00