Commit 474de76
committed
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
7b67a0a and extended in f24cf96) to not trust the parallel_safe flag
at top level.
Discussion: <874m2w4k5d.fsf@ex.ansel.ydns.eu>1 parent bf5fe7b commit 474de76
2 files changed
+12
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
330 | | - | |
| 329 | + | |
331 | 330 | | |
332 | | - | |
333 | | - | |
334 | | - | |
| 331 | + | |
335 | 332 | | |
336 | 333 | | |
337 | 334 | | |
| |||
782 | 779 | | |
783 | 780 | | |
784 | 781 | | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
789 | 786 | | |
790 | 787 | | |
791 | 788 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2134 | 2134 | | |
2135 | 2135 | | |
2136 | 2136 | | |
2137 | | - | |
| 2137 | + | |
2138 | 2138 | | |
2139 | 2139 | | |
2140 | 2140 | | |
2141 | | - | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
2142 | 2144 | | |
2143 | 2145 | | |
2144 | 2146 | | |
| |||
2170 | 2172 | | |
2171 | 2173 | | |
2172 | 2174 | | |
2173 | | - | |
| 2175 | + | |
2174 | 2176 | | |
2175 | 2177 | | |
2176 | 2178 | | |
2177 | 2179 | | |
2178 | 2180 | | |
2179 | 2181 | | |
2180 | 2182 | | |
| 2183 | + | |
2181 | 2184 | | |
2182 | 2185 | | |
2183 | 2186 | | |
| |||
0 commit comments