model-writtenrun 2697 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Masahiko Sawada reported that a backend attaching to a shared radix tree could crash when starting iteration because its iterator context was missing; #1 supplied a fix for PostgreSQL 17 and explained that extensions could encounter the problem even though core parallel vacuum did not.
- John Naylor suggested creating the iterator context lazily to avoid duplicated initialization in #2, and Masahiko implemented that revision in #3.
- John reconsidered the tradeoff in #4, recommending the original, simpler fix for PostgreSQL 17 while proposing broader development-branch changes to allocate administrative objects in the caller's context and respect the caller's choice of leaf context.
- Masahiko discussed stack-allocated iterators, caller-selected slab contexts, and possible control-object embedding in #5; John then supplied a three-patch rework in #6 that removed the iterator context, removed the general-purpose tree context, and stopped automatically substituting a slab context for leaves.
- Masahiko accepted the design and identified a stale TidStore comment in #7; John corrected it, expanded the commit explanations, and raised the unused TidStore.context member in #8.
- Masahiko approved all three patches and the unused-member removal in #9, agreeing that the PostgreSQL 17 bug fix and development-branch improvements could be committed separately.
- John committed the first component of #8 as 960013f2a1, eliminating the iterator context and thereby fixing the development-branch crash.
- John committed the second component of #8 as e8a6f1f908, adding the agreed unused TidStore.context removal, and the third component as 3e70da2781, preserving the caller's leaf-context choice with a slab-context test.
- At the thread's last message, #10, John confirmed that all three development-branch patches had landed, considered the drongo failure unrelated, and reported leaving an additional experimental change aside because it did not have the intended effect; the separate PostgreSQL 17 fix had not yet landed.
- The later PostgreSQL 17 commit 9af2b34358 implemented the original fix from #1, retaining its executable changes while omitting the added attach/detach documentation.