model-writtenrun 7104 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Vignesh C opened the thread with a reproducer for an attribute-map leak originally reported by Masahiko Sawada and proposed freeing cached maps during pgoutput shutdown in #1.
- Zhijie Hou explained that shutdown callbacks do not run on errors and supplied a replacement allocating attribute maps and streamed transaction lists in the logical decoding cache context, available since PostgreSQL 15, in #2.
- Vignesh asked about moving RelationSyncCache itself in #3, but Hou explained that invalidation callbacks access it after plugin shutdown in #4, and Vignesh agreed to leave that broader change separate in #5.
- For older branches, Vignesh proposed a static attribute-map context reset at startup to preserve ABI compatibility in #6, then supplied branch-specific revisions using reset callbacks in #7.
- Hou endorsed the revised patches while asking about remaining streamed_txns allocations in #8; Michael Paquier subsequently agreed to handle that broader cleanup separately in #9.
- Michael committed the development-branch attribute-map fix from #7 as c9b3d4909b and announced backpatching through PostgreSQL 15 in #9; the available evidence indicates the allocation-context change landed unchanged.
- For the remaining PostgreSQL 13–14 fix, Michael requested a shared reset callback and consolidated context declarations in #9, and Vignesh supplied those changes with debugger-based memory checks in #10.
- Michael reported applying the remaining fix to PostgreSQL 13 and 14 after comment corrections in #11, completing the attribute-map work while the broader CacheMemoryContext cleanup remained separate.