model-writtenrun 4382 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Pyhalov reported buffer reference leaks during batch inserts into foreign partitions and supplied a reproducer and patch clearing tuple slots after each batch in #1.
- Michael Paquier acknowledged the reproducer in #2 and retained cleanup after each batch in #3, explaining that clearing slots before reuse would complicate memory-context handling.
- Michael Paquier’s revision in #3 centralized the ri_NumSlots reset alongside slot cleanup and added a two-partition regression test; he also reported checking trigger interactions and finding them correct.
- The revised patch from #3 landed unchanged as 806fad7573, and Michael Paquier reported backpatching through PostgreSQL 14 with healthy buildfarm results in #4.
- Alexander Pyhalov thanked Michael Paquier after returning from vacation in #5, ending the thread with the fix committed and no outstanding requests.