model-writtenrun 3708 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zuming Jiang reported a fuzz-generated query combining an outer join and ntile() that unexpectedly raised “WindowFunc not found in subplan target lists” #1.
- Tom Lane bisected the failure to the change making Vars aware of outer joins and undertook further investigation #2.
- Richard Guo diagnosed stale nulling-relation references in WindowClause.runCondition after outer-join reduction and supplied a patch covering all four relevant tree walkers and mutators, with a regression test #3.
- Tom Lane endorsed the patch's approach because ordinary expression trees must be processed consistently, while asking whether the omission had been intentional #4.
- After the final thread message, Tom Lane committed Richard Guo's patch unchanged as d641b827af; the commit called for backpatching the code through PostgreSQL 15, while noting that the regression test was irrelevant to that version.