model-writtenrun 3355 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- jian he reported that reverting self-join elimination exposed regression-test crashes with REALLOCATE_BITMAPSETS enabled, and supplied a reduced information_schema.columns reproducer in #1.
- Richard Guo traced the failure to SpecialJoinInfo.syn_lefthand sharing storage with RestrictInfo.outer_relids and proposed copying the set at construction in #2; David Rowley confirmed that the reverted code had protected modification with a copy in #6.
- Richard Guo questioned whether released branches could suffer related corruption in #11, while Alexander Korotkov argued for defensive copying even without a demonstrated production failure in #13.
- After David Rowley requested buildfarm coverage in #7, Andrew Dunstan enabled REALLOCATE_BITMAPSETS on prion in #14, which then failed as Tom Lane reported in #15.
- Tom Lane found that Richard's narrow fix passed core regression tests but failed check-world, so he attached a broader patch copying RestrictInfo input bitmapsets in #15, while acknowledging its allocation cost.
- David Rowley proposed copying shared sets immediately before modification in #16 and clarified the ordering in #17; Tom initially objected that incomplete test coverage could leave other mutation sites unsafe in #20 and #22.
- Tom traced the additional failure to JoinTreeItem sharing and posted two replacement approaches in #23, both passing check-world; he preferred copying SpecialJoinInfo sets during join removal because existing RestrictInfo mutation already followed that policy and the cost occurred only when removing a join.
- Tom concluded that ordinary builds avoided a live bug because these deletions neither emptied the sets nor produced inconsistent final contents in #24; he supported the diagnostic option while opposing making it the debug-build default, preserving testing of production behavior.
- David endorsed the copy-before-modification alternative in #26, and Richard supported its separate copying steps while suggesting regrouped updates in #29.
- Tom committed the second alternative from #23 with only a comment refinement as c7be3c015b, crediting David Rowley and himself and leaving backpatching deferred because no production bug was demonstrated.
- In the final reply, Tom explained that he left the update ordering unchanged to avoid unnecessary blame churn in #30; the chosen fix had landed, and the construction-time copying alternatives were superseded.