model-writtenrun 8023 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed two patches in #1 to preserve foreign-key selectivity estimates when constant restrictions eliminate join clauses, saving derived restrictions so their selectivity could be divided out instead of counted twice.
- Tom added a regression test in #2 that exposes the resulting plan change, reporting success on both 32-bit and 64-bit machines while noting possible buildfarm plan instability.
- Tomas Vondra reviewed the implementation and reported successful Raspberry Pi testing in #3, questioning the asymmetric storage of derived clauses and some casts; Tom defended the existing list design in #4, and Tomas withdrew his cast concern in #5.
- Tom explained in #4 that backpatching risked extension API/ABI compatibility and stable-branch plan changes, favoring development-branch inclusion.
- Tom committed the implementation from #1 and supplemental tests from #2 as ad1c36b070, adding a guard against applying FK estimation when no join clauses were removed.
- After the commit, Alvaro Herrera and Tom examined extension compatibility risks in #6 and #7, distinguishing inspection of existing nodes from allocating nodes with changed layouts; Alvaro linked the explanation from the committing checklist in #8, leaving the fix landed without a backport or further patch pending.