postgresql/src/include/nodes
Robert Haas 7d8f6986b8 Fix parallel query so it doesn't spoil row estimates above Gather.
Commit 45be99f8cd removed GatherPath's
num_workers field, but this is entirely bogus.  Normally, a path's
parallel_workers flag is supposed to indicate the number of workers
that it wants, and should be 0 for a non-partial path.  In that
commit, I mistakenly thought that GatherPath could also use that field
to indicate the number of workers that it would try to start, but
that's disastrous, because then it can propagate up to higher nodes in
the plan tree, which will then get incorrect rowcounts because the
parallel_workers flag is involved in computing those values.  Repair
by putting the separate field back.

Report by Tomas Vondra.  Patch by me, reviewed by Amit Kapila.

Discussion: http://postgr.es/m/f91b4a44-f739-04bd-c4b6-f135bd643669@2ndquadrant.com
2017-03-31 21:01:20 -04:00
..
bitmapset.h Support hashed aggregation with grouping sets. 2017-03-27 04:20:54 +01:00
execnodes.h Support hashed aggregation with grouping sets. 2017-03-27 04:20:54 +01:00
extensible.h Allow custom and foreign scans to have shutdown callbacks. 2017-02-26 13:41:12 +05:30
lockoptions.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
makefuncs.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
memnodes.h Add "Slab" MemoryContext implementation for efficient equal-sized allocations. 2017-02-27 03:41:44 -08:00
nodeFuncs.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
nodes.h Cast result of copyObject() to correct type 2017-03-28 21:59:23 -04:00
params.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
parsenodes.h Implement multivariate n-distinct coefficients 2017-03-24 14:06:10 -03:00
pg_list.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
plannodes.h Support hashed aggregation with grouping sets. 2017-03-27 04:20:54 +01:00
primnodes.h Support XMLTABLE query expression 2017-03-08 12:40:26 -03:00
print.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
readfuncs.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
relation.h Fix parallel query so it doesn't spoil row estimates above Gather. 2017-03-31 21:01:20 -04:00
replnodes.h Logical replication support for initial data copy 2017-03-23 08:55:37 -04:00
tidbitmap.h tidbitmap: Support shared iteration. 2017-03-08 08:09:38 -05:00
value.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00