forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite769138
committed
Fix broken MemoizePath support in reparameterize_path().
It neglected to recurse to the subpath, meaning you'd get backa path identical to the input. This could produce wrong queryresults if the omission meant that the subpath fails to enforcesome join clause it should be enforcing. We don't have a testcase for this at the moment, but the code is obviously brokenand the fix is equally obvious. Back-patch to v14 whereMemoize was introduced.Richard GuoDiscussion:https://postgr.es/m/CAMbWs4_R=ORpz=Lkn2q3ebPC5EuWyfZF+tmfCPVLBVK5W39mHA@mail.gmail.com1 parent6eb2f0e commite769138
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3994 | 3994 |
| |
3995 | 3995 |
| |
3996 | 3996 |
| |
| 3997 | + | |
3997 | 3998 |
| |
| 3999 | + | |
| 4000 | + | |
| 4001 | + | |
| 4002 | + | |
| 4003 | + | |
3998 | 4004 |
| |
3999 |
| - | |
| 4005 | + | |
4000 | 4006 |
| |
4001 | 4007 |
| |
4002 | 4008 |
| |
|
0 commit comments
Comments
(0)