model-writtenrun 5423 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- The thread opened with Andres Freund announcing Kyotaro Horiguchi’s sequential-scan support for dshash, which retained partition locks during scans and required explicit scan termination #1.
- Tom Lane questioned error recovery #2, and Andres Freund identified pre-existing assertion flags that could remain set after automatic lock release, suggesting their removal or narrower checks #3.
- After a gap of nearly four months, Thomas Munro reported build-farm evidence and a fault-injection reproducer, explained that even dsa_get_address() could throw, and proposed removing the flags rather than adding widespread cleanup handlers #4.
- Kyotaro Horiguchi endorsed the initial patch #5 and Zhihong Yu suggested clearer release wording #6, while Andres Freund requested direct lock assertions and removal of a redundant pre-release check #7; Thomas incorporated those suggestions using a loop over partition locks #8.
- Andres Freund questioned the cost of nested lock scans and suggested checking only the current partition #9; Thomas instead preserved checks across all partitions by adding LWLockAnyHeldByMe() #10.
- Thomas committed the final attachment with only a descriptive comment edit and rewritten commit message as eed959a457, back-patched the fix through PostgreSQL 11, and closed the thread with confirmation that it was pushed #11.