forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb7f315c
committed
Fix how SJE checks against PHVs
It seems that a PHV evaluated/needed at or below the self join should not havea problem if we remove the self join. But this requires further investigation.For now, we just do not remove self joins if the rel to be removed is laterallyreferenced by PHVs.Discussion:https://postgr.es/m/CAMbWs4-ns73VF9gi37q61G3dS6Xuos+HtryMaBh37WQn=BsaJw@mail.gmail.comAuthor: Richard Guo1 parenteb81e8e commitb7f315c
File tree
3 files changed
+23
-2
lines changed- src
- backend/optimizer/plan
- test/regress
- expected
- sql
3 files changed
+23
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
476 | 476 |
| |
477 | 477 |
| |
478 | 478 |
| |
479 |
| - | |
480 | 479 |
| |
481 | 480 |
| |
482 | 481 |
| |
| |||
2134 | 2133 |
| |
2135 | 2134 |
| |
2136 | 2135 |
| |
2137 |
| - | |
| 2136 | + | |
| 2137 | + | |
2138 | 2138 |
| |
2139 | 2139 |
| |
2140 | 2140 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6821 | 6821 |
| |
6822 | 6822 |
| |
6823 | 6823 |
| |
| 6824 | + | |
| 6825 | + | |
| 6826 | + | |
| 6827 | + | |
| 6828 | + | |
| 6829 | + | |
| 6830 | + | |
| 6831 | + | |
| 6832 | + | |
| 6833 | + | |
| 6834 | + | |
| 6835 | + | |
| 6836 | + | |
| 6837 | + | |
| 6838 | + | |
6824 | 6839 |
| |
6825 | 6840 |
| |
6826 | 6841 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2600 | 2600 |
| |
2601 | 2601 |
| |
2602 | 2602 |
| |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
2603 | 2609 |
| |
2604 | 2610 |
| |
2605 | 2611 |
| |
|
0 commit comments
Comments
(0)