model-writtenrun 1746 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Daniil Davydov proposed fetching a BufferManagerRelation's smgr through BMR_GET_SMGR to avoid stale pointers after relcache invalidation, while acknowledging that no current upstream code path triggered the problem #1.
- After Daniil moved the patch to master #2, Stepan Neretin reported a joint review with Dmitriy Bondar, passing tests, and questions about header dependencies and the macro's validity check #3.
- Daniil explained that RelationIsValid distinguishes BMR_REL from BMR_SMGR rather than checking relcache flags, and rebased the patch with an explicit include temporarily unnecessary #4; Stepan subsequently said it looked good #5.
- After several months, Alvaro Herrera supplied a revision with clearer comments and minor style changes, restored the explicit utils/rel.h include, opposed backpatching without an upstream failure, and asked how the change interacted with SMgrRelation pinning #6.
- Daniil approved Alvaro's changes, explained that a client had encountered the problem in modified PostgreSQL code, and clarified that pinning guards smgr_destroy rather than smgr_release #7.
- Alvaro committed the exact diff from #6 as b7cc6474e9, crediting Daniil as author and Stepan as reviewer, then confirmed the push in the thread's final message #8; the change landed without backports.