aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-11-25 16:20:12 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2016-11-25 16:20:12 -0500
commitab77a5a4561fad847af4a101a29c922c66449870 (patch)
tree7f9d5a345c454232859e3b6847e8b02b4323e692 /src/backend/access/transam/xlog.c
parent4e026b32d4024b03856b4981b26c747b7fef7afb (diff)
downloadpostgresql-ab77a5a4561fad847af4a101a29c922c66449870.tar.gz
postgresql-ab77a5a4561fad847af4a101a29c922c66449870.zip
Mark a query's topmost Paths parallel-unsafe if they will have initPlans.
Andreas Seltenreich found another case where we were being too optimistic about allowing a plan to be considered parallelizable despite it containing initPlans. It seems like the real issue here is that if we know we are going to tack initPlans onto the topmost Plan node for a subquery, we had better mark that subquery's result Paths as not-parallel-safe. That fixes this problem and allows reversion of a kluge (added in commit 7b67a0a49 and extended in f24cf960d) to not trust the parallel_safe flag at top level. Discussion: <874m2w4k5d.fsf@ex.ansel.ydns.eu>
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions