forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit270eb4b
committed
Fix failure to set correct operator in window run condition
This was a simple omission in9d9c02c where the code didn't correctlyset the operator to use in the run condition OpExpr when the windowfunction was both monotonically increasing and decreasing.Bug discovered by Julien Roze, although he did not report it.Reported-by: Phil FlorentDiscussion:https://postgr.es/m/PA4P191MB160009A09B9D0624359278CFBA9F9@PA4P191MB1600.EURP191.PROD.OUTLOOK.COMBackpatch-through: 15, where9d9c02c was added1 parent6f7e7d0 commit270eb4b
File tree
3 files changed
+29
-0
lines changed- src
- backend/optimizer/path
- test/regress
- expected
- sql
3 files changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2306 | 2306 | | |
2307 | 2307 | | |
2308 | 2308 | | |
| 2309 | + | |
2309 | 2310 | | |
2310 | 2311 | | |
2311 | 2312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3646 | 3646 | | |
3647 | 3647 | | |
3648 | 3648 | | |
| 3649 | + | |
| 3650 | + | |
| 3651 | + | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
| 3655 | + | |
| 3656 | + | |
| 3657 | + | |
| 3658 | + | |
| 3659 | + | |
| 3660 | + | |
| 3661 | + | |
| 3662 | + | |
| 3663 | + | |
| 3664 | + | |
| 3665 | + | |
3649 | 3666 | | |
3650 | 3667 | | |
3651 | 3668 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1150 | 1150 | | |
1151 | 1151 | | |
1152 | 1152 | | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1153 | 1164 | | |
1154 | 1165 | | |
1155 | 1166 | | |
| |||
0 commit comments
Comments
(0)