model-writtenrun 7876 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Fujii Masao demonstrated a standby deadlock that persisted beyond deadlock_timeout and proposed having recovery request backend deadlock checks in #1; Victor Yegorov reported production outages from the same problem in #2.
- After Bertrand Drouvot supported enabling the recovery deadlock timer in #3, Fujii expanded the prototype into targeted signaling of conflicting lock holders, with dispatch outside the timeout handler, in #4.
- Fujii refined timeout handling in #5 to avoid repeated requests during long lock conflicts while retaining existing repeated buffer-pin checks; Drouvot supported that distinction in #6, and Fujii deferred broader buffer-pin optimization to separate master-only work in #8.
- Masahiko Sawada identified unnecessary backend deadlock checks during buffer-pin conflicts in #7; Fujii proposed checking the startup process's buffer-pin wait state instead of introducing another signal in #9 and implemented that guard in #10.
- Sawada requested consistent timeout setup and reliable flag cleanup in #11, which Fujii incorporated into #12 and Sawada confirmed in #13.
- Kyotaro Horiguchi questioned the cleanup gotos in #14; Fujii defended sharing the cleanup path with the no-conflicting-backends exit in #15, and the code remained unchanged despite Horiguchi's further objection in #18.
- Fujii proposed omitting PostgreSQL 9.5 because its missing infrastructure would require risky additional changes immediately before its final release in #15; Drouvot, Yegorov, Horiguchi and Sawada supported that decision in #16, #17, #18 and #19.
- Fujii committed #12 unchanged apart from rebase context as 8900b5a9d5 and announced backpatches through PostgreSQL 9.6 in #20, completing the deadlock fix while leaving the broader buffer-pin optimization deferred.