Commit d641b82
committed
Handle WindowClause.runCondition in tree walker/mutator functions.
Commit 9d9c02c, which added the notion of a "run condition" for
window functions, neglected to teach nodeFuncs.c to process the new
field. Remarkably, that doesn't seem to have had any ill effects
before we invented Var.varnullingrels, but now it can cause visible
failures in join-removal scenarios.
I have no faith that there's not reachable problems in v15 too,
so back-patch the code change to v15 where 9d9c02c came in.
The test case seems irrelevant to v15, though.
Per bug #18277 from Zuming Jiang. Diagnosis and patch by
Richard Guo.
Discussion: https://postgr.es/m/18277-089ead83b329a2fd@postgresql.org1 parent 5b2da24 commit d641b82
File tree
3 files changed
+41
-0
lines changed- src
- backend/nodes
- test/regress
- expected
- sql
3 files changed
+41
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2283 | 2283 | | |
2284 | 2284 | | |
2285 | 2285 | | |
| 2286 | + | |
| 2287 | + | |
2286 | 2288 | | |
2287 | 2289 | | |
2288 | 2290 | | |
| |||
2627 | 2629 | | |
2628 | 2630 | | |
2629 | 2631 | | |
| 2632 | + | |
| 2633 | + | |
2630 | 2634 | | |
2631 | 2635 | | |
2632 | 2636 | | |
| |||
3312 | 3316 | | |
3313 | 3317 | | |
3314 | 3318 | | |
| 3319 | + | |
3315 | 3320 | | |
3316 | 3321 | | |
3317 | 3322 | | |
| |||
3641 | 3646 | | |
3642 | 3647 | | |
3643 | 3648 | | |
| 3649 | + | |
3644 | 3650 | | |
3645 | 3651 | | |
3646 | 3652 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4181 | 4181 | | |
4182 | 4182 | | |
4183 | 4183 | | |
| 4184 | + | |
| 4185 | + | |
| 4186 | + | |
| 4187 | + | |
| 4188 | + | |
| 4189 | + | |
| 4190 | + | |
| 4191 | + | |
| 4192 | + | |
| 4193 | + | |
| 4194 | + | |
| 4195 | + | |
| 4196 | + | |
| 4197 | + | |
| 4198 | + | |
| 4199 | + | |
| 4200 | + | |
| 4201 | + | |
| 4202 | + | |
| 4203 | + | |
| 4204 | + | |
| 4205 | + | |
| 4206 | + | |
| 4207 | + | |
| 4208 | + | |
| 4209 | + | |
4184 | 4210 | | |
4185 | 4211 | | |
4186 | 4212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1368 | 1368 | | |
1369 | 1369 | | |
1370 | 1370 | | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
1371 | 1380 | | |
1372 | 1381 | | |
1373 | 1382 | | |
| |||
0 commit comments