forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitab77a5a
committed
Mark a query's topmost Paths parallel-unsafe if they will have initPlans.
Andreas Seltenreich found another case where we were being too optimisticabout allowing a plan to be considered parallelizable despite it containinginitPlans. It seems like the real issue here is that if we know we aregoing to tack initPlans onto the topmost Plan node for a subquery, wehad better mark that subquery's result Paths as not-parallel-safe. Thatfixes this problem and allows reversion of a kluge (added in commit7b67a0a and extended inf24cf96) to not trust the parallel_safe flagat top level.Discussion: <874m2w4k5d.fsf@ex.ansel.ydns.eu>1 parent4e026b3 commitab77a5a
2 files changed
+12
-12
lines changedLines changed: 6 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
341 | 341 |
| |
342 | 342 |
| |
343 | 343 |
| |
344 |
| - | |
345 |
| - | |
| 344 | + | |
346 | 345 |
| |
347 |
| - | |
348 |
| - | |
349 |
| - | |
| 346 | + | |
350 | 347 |
| |
351 | 348 |
| |
352 | 349 |
| |
| |||
801 | 798 |
| |
802 | 799 |
| |
803 | 800 |
| |
804 |
| - | |
805 |
| - | |
806 |
| - | |
807 |
| - | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
808 | 805 |
| |
809 | 806 |
| |
810 | 807 |
| |
|
Lines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2128 | 2128 |
| |
2129 | 2129 |
| |
2130 | 2130 |
| |
2131 |
| - | |
| 2131 | + | |
2132 | 2132 |
| |
2133 | 2133 |
| |
2134 | 2134 |
| |
2135 |
| - | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
2136 | 2138 |
| |
2137 | 2139 |
| |
2138 | 2140 |
| |
| |||
2164 | 2166 |
| |
2165 | 2167 |
| |
2166 | 2168 |
| |
2167 |
| - | |
| 2169 | + | |
2168 | 2170 |
| |
2169 | 2171 |
| |
2170 | 2172 |
| |
2171 | 2173 |
| |
2172 | 2174 |
| |
2173 | 2175 |
| |
2174 | 2176 |
| |
| 2177 | + | |
2175 | 2178 |
| |
2176 | 2179 |
| |
2177 | 2180 |
| |
|
0 commit comments
Comments
(0)