model-writtenrun 2798 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Boyu Yang reported excessive pgoutput RelationSyncCache memory consumption and supplied a sysbench reproducer and patch explicitly freeing uncounted tuple descriptors during slot cleanup in #1.
- Hou Zhijie confirmed the diagnosis in #2, explained why reference counting was unsuitable without a suitable resource owner, and identified a use-after-free in the patch, proposing that each slot be dropped before its saved descriptor is freed.
- Boyu instead proposed clearing a local descriptor variable in #4 and submitted that approach with benchmark results in #7; Michael Paquier then reported a failing subscription test in #8, prompting the revision in #9 that cleared the actual slot fields.
- Boyu identified the need for backpatching through PostgreSQL 15 in #4, while Michael explained that an imminent release temporarily delayed stable-branch changes in #5.
- Michael committed ea792bfd93 from #9 with revised cleanup ordering and explanatory comments, confirming in #10 that he adopted Hou's cleaner method and applied the fix through PostgreSQL 15.
- The submitted fix was fully landed by #10, but Michael reported evidence of another smaller WAL sender leak and suggested broader per-entry memory-context cleanup as a possible direction for further work.