forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite9a20e4
committed
When removing a relation from the query, drop its RelOptInfo.
In commitb78f626 I opined that it was "too risky" to delete arelation's RelOptInfo from the planner's data structures when we haverealized that we don't need to join to it; so instead we just markedit as a dead relation. In hindsight that judgment seems flawed: anysubsequent access to such a dead relation is arguably a bug initself, so leaving the RelOptInfo present just helps to mask bugs.Let's delete it instead, allowing removal of the whole notion of a"dead relation". So far as the regression tests can find, thisrequires no other code changes, except for one Assert in equivclass.cthat was very dubiously not complaining about access to a dead rel.Discussion:https://postgr.es/m/229905.1676062220@sss.pgh.pa.us1 parentc7468c7 commite9a20e4
File tree
4 files changed
+16
-17
lines changed- src
- backend/optimizer
- path
- plan
- include/nodes
4 files changed
+16
-17
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
729 | 729 |
| |
730 | 730 |
| |
731 | 731 |
| |
732 |
| - | |
733 |
| - | |
| 732 | + | |
734 | 733 |
| |
735 | 734 |
| |
736 | 735 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
331 | 331 |
| |
332 | 332 |
| |
333 | 333 |
| |
334 |
| - | |
335 |
| - | |
336 |
| - | |
337 |
| - | |
338 |
| - | |
339 |
| - | |
340 | 334 |
| |
341 | 335 |
| |
342 | 336 |
| |
| |||
487 | 481 |
| |
488 | 482 |
| |
489 | 483 |
| |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
490 | 494 |
| |
491 | 495 |
| |
492 | 496 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2886 | 2886 |
| |
2887 | 2887 |
| |
2888 | 2888 |
| |
2889 |
| - | |
2890 |
| - | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
2891 | 2892 |
| |
2892 | 2893 |
| |
2893 | 2894 |
| |
| |||
2901 | 2902 |
| |
2902 | 2903 |
| |
2903 | 2904 |
| |
2904 |
| - | |
2905 |
| - | |
| 2905 | + | |
2906 | 2906 |
| |
2907 | 2907 |
| |
2908 | 2908 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
638 | 638 |
| |
639 | 639 |
| |
640 | 640 |
| |
641 |
| - | |
642 |
| - | |
643 |
| - | |
644 | 641 |
| |
645 | 642 |
| |
646 | 643 |
| |
| |||
823 | 820 |
| |
824 | 821 |
| |
825 | 822 |
| |
826 |
| - | |
827 |
| - | |
| 823 | + | |
828 | 824 |
| |
829 | 825 |
| |
830 | 826 |
| |
|
0 commit comments
Comments
(0)