model-writtenrun 4286 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zuming Jiang reported that simplifying an always-true CASE condition changed query results in PostgreSQL 16beta1, providing a reproducer found by his fuzzer #1.
- David Rowley traced the regression to missing join filters #2, and Tom Lane showed that both query variants had incorrect plans because join removal left stale relation references in EquivalenceClasses #3; Tom connected this to newly permitted removal of nested left joins while leaving open whether older branches could also be affected #4.
- Richard Guo submitted a patch to clean the EquivalenceClass and member relation sets and source clauses, together with a reduced regression test, while questioning whether additional cleanup or handling of empty sets was necessary #5.
- Tom Lane committed the patch as f4c00d138f with broader EquivalenceClass scanning, a separate cleanup function, deletion of dead members, and clearing of derived clauses; he retained the test and explained that removing entire depleted EquivalenceClasses would require rebuilding index sets and was probably not worthwhile #6.
- Amit Kapila asked whether the commit resolved the tracked open item #7, Tom confirmed that the stated bug was fixed despite potentially overlapping issues #8, and Amit completed the tracking update #9.