model-writtenrun 73 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- shihao zhong reported that a backend blocked sending to an unresponsive client could indefinitely delay promotion, replay, and DROP DATABASE, and proposed absorbing barriers during client reads and writes while converting errors to fatal disconnects in #1.
- Fujii Masao proposed independently skipping the promotion barrier at wal_level=logical in #2, and Manu extended that optimization to emit without waiting when logical decoding would be disabled, since stale enabled caches only produce extra WAL information, in #3.
- Hayato Kuroda reproduced a missed retry when a barrier callback returned false in #4; Manu supplied a latch fix and corrected unreliable and version-dependent tests in #7, which shihao incorporated into the complete client-I/O series in #8.
- Fujii revised the optimization's comments in #5, Masahiko Sawada approved it in #6, and Manu reported successful regression and recovery testing in #7; Fujii committed that exact diff as df1be4ddc8 and announced it in #10, including a backpatch to PostgreSQL 19.
- Masahiko questioned introducing callback execution inside protocol messages so late in the release cycle in #12, while Manu's testing in #13 narrowed the remaining promotion problem to replica-level standbys with logical slots and documented that SIGTERM cannot release a backend blocked sending an error with interrupts held.
- After shihao argued that synchronized failover slots made the remaining problem important for high availability in #14, Masahiko identified a concrete flaw in the absorption approach: checksum barriers intentionally raise retryable errors that the patch would turn fatal, and proposed either reducing required barriers or terminating unresponsive backends in #15.
- shihao replaced the original absorption approach with an early startup barrier whose generation could be awaited at promotion in #16; Manu validated the stale auxiliary-process caches and demonstrated that a SIGTERM prototype also handled replay, checksum, and cross-database waits in #17.
- Amit Kapila favored documenting the limitation for PostgreSQL 19 and developing the broader solution on master in #18; Masahiko supplied a revised optimization initialized from control-file state in #19, but emphasized that it still could not solve blocked replay or every promotion case.
- shihao accepted the documentation-first release plan and posted the note in #20; Amit removed platform-specific timing and the recommendation to change wal_level, clarified the remedies, and questioned whether the additional cache optimization justified its assumptions in #21.
- Hayato demonstrated that tcp_user_timeout can affect an established connection when configured before it blocks in #22, prompting Amit's more precise advance-configuration wording in #26.
- At shihao's invitation, Manu posted the separate timeout implementation in #23, using a configurable grace period and SIGTERM for client backends and WAL senders across all barrier waiters, while explicitly leaving recovery conflicts and uninterruptible error writes unresolved.
- shihao found that the timeout also killed synchronous-replication and paused COPY sessions, exposed a flaky slow-reader test, and identified a reused-process-slot race in #25; Manu addressed these in #29 by restricting termination to ClientWrite, checking PID and generation under the slot lock, and strengthening the tests.
- Shveta Malik requested valid-slot wording and configuration links in #27, consolidated the documentation edits in #31, and Hayato removed redundant wording in #32; Zhijie Hou and Amit approved the resulting note in #34 and #35.
- Manu compared the cache optimization with the timeout approach in #36, finding that the former made promotion faster while the latter also cleared replay and primary-side barrier waits, leaving the value of the separate optimization open.
- shihao confirmed the timeout fixes but flagged misleading termination logs and suggested a shared send-progress counter in #37; Manu added the counter, an inactivity timeout, a ten-times overall limit, and explicit logging for sessions that did not exit in #38.
- Alexander Lakhin showed that a synchronous-replication waiter could still hold a DROP DATABASE barrier and indirectly block new connections in #39; Manu responded with a two-patch series in #40, first absorbing explicitly safe barrier types during synchronous-replication and COPY-input waits, then applying the ClientWrite timeout.
- Masahiko approved the documentation in #41 and committed it as b936425002, based on #32 with restored configuration links and small wording and markup edits, then announced completion in #42.
- At the final message #42, the conditional promotion optimization and documentation note had landed and been backpatched to PostgreSQL 19, while the cache-initialization proposal in #19 and the broader two-patch barrier-handling series in #40 remained uncommitted in this thread; recovery conflicts, uninterruptible error writes, and timeout policy remained unresolved.