model-writtenrun 9728 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nishant Fnu reported that heap-page locks could be reacquired in buffer-ID order instead of block-number order when pinning visibility-map pages, and supplied a one-line correction in #1.
- Amit Kapila identified a matching assertion that also needed correction in #2; Nishant incorporated it in #3 and added an explanatory commit message in #4.
- Robert Haas agreed with the diagnosis in #5, observing that the deadlock probability must be very low; Amit then supplied the final patch in #6, correcting the function comment and polishing the commit message while proposing backpatches through PostgreSQL 9.4.
- Nishant confirmed in #7 that he found the problem by reading code and had no reproducing test case, and approved the author credit Nishant Fnu.
- The final patch from #6 landed unchanged as 0b8bdb3c3e, and Amit confirmed in #8 that it had been pushed and backpatched through PostgreSQL 9.4, completing the thread's fix.