forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit990c365
committed
Don't Memoize lateral joins with volatile join conditions
The use of Memoize was already disabled in normal joins when the joinconditions had volatile functions per the code inmatch_opclause_to_indexcol(). Ordinarily, the parameterization for theinner side of a nested loop will be an Index Scan or at least eventuallylead to an index scan (perhaps nested several joins deep). However, forlateral joins, that's not the case and seq scans can be parameterizedtoo, so we can't rely on match_opclause_to_indexcol().Here we explicitly check the parameterization for volatile functions anddon't consider the generation of a Memoize path when such functionsare present.Author: Richard GuoDiscussion:https://postgr.es/m/CAMbWs49nHFnHbpepLsv_yF3qkpCS4BdB-v8HoJVv8_=Oat0u_w@mail.gmail.comBackpatch-through: 14, where Memoize was introduced1 parentc2e08b0 commit990c365
1 file changed
+17
-0
lines changedLines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
667 | 667 |
| |
668 | 668 |
| |
669 | 669 |
| |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
670 | 687 |
| |
671 | 688 |
| |
672 | 689 |
| |
|
0 commit comments
Comments
(0)