model-writtenrun 459 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tyler Smart reported that PostgreSQL 18 could send Stream Abort messages to non-streaming pgoutput clients, causing repeated consumer failures and eventual replication-slot invalidation, and traced the problem to aborted transactions discarded during memory eviction in #1.
- Andrey Rachitskiy supplied a guard and regression test in #2, then offered a local alternative in #3 that centralized the rule in ReorderBufferMaybeMarkTXNStreamed: a subtransaction must have changes and an already-streamed top-level transaction before being marked streamed.
- Hayato Kuroda confirmed an assertion failure and refined the helper and test explanations in #4 and #6; Andrey incorporated those comments in #5 and #7, and Hayato approved the result in #8.
- Fujii Masao approved the fix while requesting an assertion documenting that top-level transactions are marked only when streaming is supported in #9, which Andrey added in #10.
- Masahiko Sawada explained that the bug affected any protocol version with streaming disabled and requested moving the test to stream.sql in #11; Andrey implemented and verified a protocol-version-4 test with streaming disabled in #12.
- Masahiko replaced the pgoutput-specific test with a simpler test_decoding regression and expanded the commit explanation to cover its NULL-pointer crash in #13, preserving the backend fix; Andrey approved this final version in #14.
- Masahiko committed #13 with an identical diff as aa4c52b808, with backpatching through PostgreSQL 18, and confirmed the push in #15, leaving no outstanding patch work in the thread.