aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2018-04-09 17:23:49 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2018-04-09 17:23:49 -0300
commit468abb8f7a69c68341b6fc2797166d1079acb1b1 (patch)
tree0a75401e60c706b9a600eba95ac50e6474649cff /src/backend/executor/nodeModifyTable.c
parentd7754822c52ccb6dfb1c29607ae352c2028979d2 (diff)
downloadpostgresql-468abb8f7a69c68341b6fc2797166d1079acb1b1.tar.gz
postgresql-468abb8f7a69c68341b6fc2797166d1079acb1b1.zip
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
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions