model-writtenrun 8562 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Baji Shaik opened the thread with a reproduced replication stall caused by exhausted DSM segments: his patch made parallel apply use its existing serialization fallback, and his test applied all rows without errors #1.
- Zhijie Hou confirmed that the missing flag made the fallback unreachable, requested removal of a comment describing the caller's responsibilities, and identified an analogous DSA allocation bug #2.
- Baji Shaik revised the parallel-apply patch and added a separate DSA fix so allocation with DSA_ALLOC_NO_OOM could return InvalidDsaPointer instead of raising an error; he proposed backpatching both fixes #3.
- Bharath Rupireddy reviewed both patches but initially favored applying them only to HEAD because segment exhaustion seemed rare and recoverable; Baji accepted that possibility and left the backpatch decision to the committer #4 #5.
- Masahiko Sawada reviewed both patches and favored backpatching because repeated apply-worker failures could stop replication and DSA violated its allocation contract; Bharath accepted that reasoning and marked the work ready for committer #6 #7.
- Masahiko Sawada committed the two code changes from #3 unchanged as separate commits, with revised commit messages: parallel-apply fallback in c790e38b4a, backpatched through PostgreSQL 16, and DSA allocation handling in 19ab0bae3a, backpatched through PostgreSQL 15.
- The thread ended with Masahiko Sawada confirming that both patches had been pushed, leaving no outstanding patch in the series #8.