model-writtenrun 9680 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Justin Pryzby reported recurring “cannot unpin a segment that is not pinned” errors while stress-testing PostgreSQL 11 with earlier DSA fixes already applied, although master had run without reproducing the error #1.
- Thomas Munro identified a handle-reuse race in dsm_unpin_segment() and posted an inline fix that skips segments being destroyed, allowing the search to find the live segment with the same handle #2.
- Justin reported approximately 36 error-free hours with the fix, then described a separate shutdown problem in which a backend remained waiting in ExecuteGather after the postmaster received SIGTERM #3 #4 #6.
- Thomas explained that PostgreSQL 11's gather_readnext() did not respond to postmaster death, noted that master already handled it, and suggested considering a backpatch; Justin highlighted the resulting restart hazard #5 #7 #8.
- Thomas committed the inline DSM fix as 0b55aaacec and announced that the accumulated DSM/DSA fixes would reach PostgreSQL 11.3 and 10.8, while leaving recursive-error cleanup and its potential self-deadlock for further thought #7.
- A reminder of an unresolved segfault report led Thomas to attach a separate DSA patch: failed span allocation must respect DSA_ALLOC_NO_OOM, and an impossible free-page allocation failure must raise FATAL consistently #9.
- The thread ended with that DSA patch awaiting review; it subsequently landed as 29ddb548f6 with only brace cleanup and explanatory edits, while the shutdown backpatch and recursive-error cleanup questions remained unresolved in the supplied discussion #9 #7.