model-writtenrun 7426 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Pavan Deolasee reported a PostgreSQL 14 assertion failure when streaming COPY-inserted toasted data and supplied a regression-test reproducer, suspecting that retained TOAST chunks prevented transaction memory accounting from reaching zero #1; Michael Paquier registered an open item #3.
- Dilip Kumar traced the failure to streaming before the final multi-insert tuple permits TOAST cleanup and proposed clearing TOAST data during streaming #4, but Pavan reported missing downstream values and supplied tuple-printing instrumentation that demonstrated unresolved TOAST values #5 #7.
- After reproducing that failure, Dilip concluded that TOAST data must survive until the multi-insert is complete and replaced early cleanup with a flag that delays streaming incomplete multi-inserts #8 #9; Pavan accepted the streaming restriction and requested regression coverage #10.
- Amit Kapila observed that the new multi-insert flag would unnecessarily delay rows without TOAST and proposed checking clear_toast_afterwards when clearing pending TOAST state #12; Dilip implemented that refinement, merged TOAST and speculative-insert flags into one partial-change flag following off-list discussion, and added a regression test #14.
- Pavan questioned whether the new test crossed the streaming threshold #15, and Dilip confirmed that it reproduced the assertion without the fix using the existing large toasted rows #16.
- Amit found that the test's external psql invocation failed on Windows #18, and Pavan suggested copying literal data from STDIN or lowering the memory threshold #19; Dilip chose inline COPY data, leaving the implementation unchanged #22.
- Amit prepared the final attachment with expanded comments and a revised commit message while retaining Dilip's implementation and tests #23, and Dilip accepted those edits #24.
- Amit committed 6f4bdf8152 from #23 with identical code and tests and an additional commit-message explanation of flag consolidation; his final update confirmed that the fix had landed and the open item was closed #25.