forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1761653
committed
Make create_unique_path manage memory like mark_dummy_rel.
Put the unique path in the same context as the owning RelOptInfo, ratherthan the toplevel planner context. This is how this function workedoriginally, but commitf41803bchanged it without explanation. mark_dummy_rel adopted the older (ornewer?) technique in commiteca75a1,which also featured a much better explanation of why it is correct.So, switch back to that technique here, with the same explanationgiven there.Although this fixes a possible memory leak when GEQO is in use, theleak is minor and probably nobody cares, so no back-patch.Ashutosh Bapat, reviewed by Tom Lane and by meDiscussion:http://postgr.es/m/CAFjFpRcXkHHrXyD9BCvkgGJV4TnHG2SWJ0PhJfrDu3NAcQvh7g@mail.gmail.com1 parente21a556 commit1761653
1 file changed
+9
-3
lines changedLines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1462 | 1462 |
| |
1463 | 1463 |
| |
1464 | 1464 |
| |
1465 |
| - | |
1466 |
| - | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
1467 | 1473 |
| |
1468 |
| - | |
| 1474 | + | |
1469 | 1475 |
| |
1470 | 1476 |
| |
1471 | 1477 |
| |
|
0 commit comments
Comments
(0)