model-writtenrun 8539 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Following Andres Freund’s report in thread #44206, Nitin Jadhav proposed checking interrupts on every inner WAL receive-loop iteration and demonstrated that this reduced receiver termination delay under an artificially slowed workload #1.
- Joao Rito verified the fix for connection reconfiguration, fast shutdown and promotion, passed 100 recovery tests, and reviewed the safety of checking interrupts between messages; he also noted the absence of an automated regression test #2.
- Fujii Masao supported the patch and proposed backpatching to all supported versions, asking whether PostgreSQL 17 and older required ProcessWalRcvInterrupts() instead #3.
- Nitin confirmed that older branches need ProcessWalRcvInterrupts() to handle the receiver’s shutdown flag, whereas PostgreSQL 18 onward uses the standard interrupt machinery #4.
- Fujii committed the unchanged development-branch patch from #1 as 5c06a7ef24 and announced backpatches through PostgreSQL 15 #5; Nitin’s acknowledgment closed the thread with the fix landed #6.