model-writtenrun 5970 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Simon Riggs reported that concurrent SKIP LOCKED followed by UPDATE triggered an assertion, and submitted a proposed assertion relaxation plus an isolation test that had not reproduced the problem #1.
- Nathan Bossart could not reproduce the failure and asked about concurrency; Simon clarified that multiple sessions were required and suggested running pgbench with two clients #2 #3.
- Alvaro Herrera reproduced crashes with at least four pgbench clients, confirmed that the patch prevented them, and explained how concurrent transactions could set HEAP_XMAX_INVALID after a locking attempt returned TM_WouldBlock; he also could not reproduce the issue with isolationtester #4.
- Alvaro committed the assertion change from #1 with an explanatory comment, omitting the unsuccessful isolation test and targeting all supported branches, as f66885bec0, then announced the push #5.
- Immediately afterward, Alvaro acknowledged a problem, and Tom Lane identified that the new assertion was always true because TM_WouldBlock is a nonzero constant; Tom proposed comparing result against TM_WouldBlock and matching the adjacent assertion's formatting #6 #7.
- Justin Pryzby reported a compiler error for using the enum constant as a boolean, and Simon confirmed that Tom's comparison was intended; the thread ends with the original change committed and the correction agreed, without a subsequent landing established by the supplied material #8 #9.