forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd7885b1
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 parent1b22224 commitd7885b1
1 file changed
+13
-0
lines changedLines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2380 | 2380 |
| |
2381 | 2381 |
| |
2382 | 2382 |
| |
| 2383 | + | |
2383 | 2384 |
| |
2384 | 2385 |
| |
2385 | 2386 |
| |
2386 | 2387 |
| |
2387 | 2388 |
| |
2388 | 2389 |
| |
2389 | 2390 |
| |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
2390 | 2401 |
| |
2391 | 2402 |
| |
2392 | 2403 |
| |
| |||
2486 | 2497 |
| |
2487 | 2498 |
| |
2488 | 2499 |
| |
| 2500 | + | |
| 2501 | + | |
2489 | 2502 |
| |
2490 | 2503 |
| |
2491 | 2504 |
| |
|
0 commit comments
Comments
(0)