model-writtenrun 8086 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed delaying bitmapset computation until a new equivalence class is created in the planner memory context, avoiding unnecessary work and potential dangling pointers affecting extension callers #1.
- The same patch corrected the join equivalence-class lookup to use nominal_inner_relids; Tom considered both bugs latent in core PostgreSQL and asked whether to backpatch them #1.
- David Rowley reviewed both corrections and favored backpatching, citing the low risk of the memory-context change and possible extension uses of distinct child equivalence classes #2.
- Tom committed the attached patch unchanged as 53c6daff43, with backports covering the old memory-context defect and the lookup defect introduced in version 13 #1.
- Tom confirmed that he agreed with backpatching, announced that the fixes were pushed, and thanked David for reviewing, leaving no outstanding work in the thread #3.