postgresql/src/include/nodes
Alvaro Herrera 468abb8f7a Fix incorrect logic for choosing the next Parallel Append subplan
In 499be013de support for pruning unneeded Append subnodes was added.
The logic in that commit was not correctly checking if the next subplan
was in fact a valid subplan. This could cause parallel workers processes
to be given a subplan to work on which didn't require any work.

Per code review following an otherwise unexplained regression failure in
buildfarm member Pademelon.  (We haven't been able to reproduce the
failure, so this is a bit of a blind fix in terms of whether it'll
actually fix it; but it is a clear bug nonetheless).

In passing, also add a comment to explain what first_partial_plan means.

Author: David Rowley
Discussion: https://postgr.es/m/CAKJS1f_E5r05hHUVG3UmCQJ49DGKKHtN=SHybD44LdzBn+CJng@mail.gmail.com
2018-04-09 17:23:49 -03:00
..
bitmapset.h Add bms_prev_member function 2018-04-07 17:54:39 -03:00
execnodes.h Support partition pruning at execution time 2018-04-07 17:54:39 -03:00
extensible.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
lockoptions.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
makefuncs.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
memnodes.h Allow memory contexts to have both fixed and variable ident strings. 2018-03-27 16:46:51 -04:00
nodeFuncs.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
nodes.h Support partition pruning at execution time 2018-04-07 17:54:39 -03:00
params.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
parsenodes.h Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
pg_list.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
plannodes.h Fix incorrect logic for choosing the next Parallel Append subplan 2018-04-09 17:23:49 -03:00
primnodes.h Support partition pruning at execution time 2018-04-07 17:54:39 -03:00
print.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
readfuncs.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
relation.h Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
replnodes.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
tidbitmap.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
value.h Change internal integer representation of Value node 2018-03-13 09:56:25 -04:00