forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3d69efc
committed
Build EC members for child join rels in the right memory context.
This patch prevents crashes or wrong plans when partition-wise joinsare considered during GEQO planning, as a consequence of theEquivalenceClass data structures becoming corrupt after a GEQOcontext reset.A remaining problem is that successive GEQO cycles will make multiplecopies of the required EC members, since add_child_join_rel_equivalenceshas no idea that such members might exist already. For now we'll justlive with that. The lack of field complaints of crashes suggests thatthis is a mighty little-used situation.Back-patch to v12 where this code was introduced.Discussion:https://postgr.es/m/1683100.1601860653@sss.pgh.pa.us1 parent9b8e685 commit3d69efc
1 file changed
+13
-0
lines changedLines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2234 | 2234 |
| |
2235 | 2235 |
| |
2236 | 2236 |
| |
| 2237 | + | |
2237 | 2238 |
| |
2238 | 2239 |
| |
2239 | 2240 |
| |
2240 | 2241 |
| |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
2241 | 2252 |
| |
2242 | 2253 |
| |
2243 | 2254 |
| |
| |||
2334 | 2345 |
| |
2335 | 2346 |
| |
2336 | 2347 |
| |
| 2348 | + | |
| 2349 | + | |
2337 | 2350 |
| |
2338 | 2351 |
| |
2339 | 2352 |
| |
|
0 commit comments
Comments
(0)