forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb762fed
committed
Fix LATERAL join test in test memoize.sql
The test in question was meant to be testing Memoize to ensure it workedcorrectly when the inner side of the join contained lateral vars, however,nothing in the lateral subquery stopped it from being pulled up into themain query, so the planner did that, and that meant no more lateral vars.Here we add a simple ORDER BY to stop the planner from being able topullup the lateral subquery.Author: Richard GuoDiscussion:https://postgr.es/m/CAMbWs4_LHJaN4L-tXpKMiPFnsCJWU1P8Xh59o0W7AA6UN99=cQ@mail.gmail.comBackpatch-through: 14, where Memoize was added.1 parent8dd4389 commitb762fed
2 files changed
+9
-5
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 |
| - | |
| 66 | + | |
| 67 | + | |
67 | 68 |
| |
68 | 69 |
| |
69 | 70 |
| |
| |||
74 | 75 |
| |
75 | 76 |
| |
76 | 77 |
| |
77 |
| - | |
| 78 | + | |
78 | 79 |
| |
79 | 80 |
| |
80 | 81 |
| |
| |||
83 | 84 |
| |
84 | 85 |
| |
85 | 86 |
| |
86 |
| - | |
| 87 | + | |
| 88 | + | |
87 | 89 |
| |
88 | 90 |
| |
89 | 91 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
| 50 | + | |
| 51 | + | |
51 | 52 |
| |
52 | 53 |
| |
53 | 54 |
| |
54 | 55 |
| |
55 |
| - | |
| 56 | + | |
| 57 | + | |
56 | 58 |
| |
57 | 59 |
| |
58 | 60 |
| |
|
0 commit comments
Comments
(0)