- Notifications
You must be signed in to change notification settings - Fork5
Commit0140a11
committed
Fix thinko in new match_join_clauses_to_index() logic.
We don't need to constrain the other side of an indexable join clause tonot be below an outer join; an example here isSELECT FROM t1 LEFT JOIN t2 ON t1.a = t2.b LEFT JOIN t3 ON t2.c = t3.d;We can consider an inner indexscan on t3.d using c = d as indexqual, eventhough t2.c is potentially nulled by a previous outer join. The comparablelogic in orindxpath.c has always worked that way, but I was being overlycautious here.1 parent973e9fb commit0140a11
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1702 | 1702 |
| |
1703 | 1703 |
| |
1704 | 1704 |
| |
1705 |
| - | |
1706 |
| - | |
1707 |
| - | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
1708 | 1708 |
| |
1709 | 1709 |
| |
1710 | 1710 |
| |
1711 | 1711 |
| |
1712 | 1712 |
| |
1713 | 1713 |
| |
1714 | 1714 |
| |
1715 |
| - | |
| 1715 | + | |
1716 | 1716 |
| |
1717 | 1717 |
| |
1718 | 1718 |
| |
|
0 commit comments
Comments
(0)