model-writtenrun 9707 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Kukushkin proposed reserving replication connections so saturated application connections could not prevent standby streaming, initially using max_wal_senders and an atomic count of active senders in #1.
- Masahiko Sawada raised configuration compatibility concerns in #2, leading Alexander to add a separate replication_reserved_connections setting with a zero default in #3.
- Kyotaro Horiguchi proposed a dedicated PGPROC pool whose slots ordinary connections could not consume in #4, and Alexander implemented that design with fallback to ordinary slots in #5.
- Alexander rebased the work for the November commitfest in #6; Kyotaro then identified changed connection accounting, a degraded exhaustion error, and a race that could leave reserved slots unused, supplying an experimental delta in #7.
- Masahiko and Kyotaro examined the fallback race and the complications of reserving fewer slots than max_wal_senders in #8 and #9, and Masahiko favored dropping the separate reservation setting in #10.
- Magnus Hagander proposed making max_wal_senders independent of max_connections in #11, Stephen Frost supported that approach in #12, and Alexander implemented a fully separate WAL-sender pool in #13, superseding the fallback-counting experiment.
- Oleksii Kliukin identified the lost specific exhaustion error and the need to enforce compatible standby sizing in #14; Petr Jelinek confirmed the sizing requirement in #15, and Alexander added WAL/control-file tracking, recovery checks, and supporting sizing changes in #16.
- Oleksii tested the standby check and took over patch revisions in #17, restoring the specific max_wal_senders error in InitProcess(); Petr's documentation review in #18 then led to corrected connection-limit and standby documentation in #19.
- Robert Haas recommended including the control-file version bump in #22, and Kyotaro reviewed comments and output formatting in #23; Oleksii incorporated those changes in #24.
- Michael Paquier found missing MAX_BACKENDS checks and supplied the final attached revision in #29, adding GUC validation and a WAL-format version bump while leaving improved autovacuum exhaustion diagnostics for possible separate work.
- Kyotaro reviewed the final allocation and validation changes in #30, while Oleksii questioned misleading GUC comments in #31; Michael agreed to simplify those comments and formatting in #32.
- Michael committed #29 as ea92368cd1 with light parameter-ordering, comment, and formatting edits, announcing completion in #33.
- Kevin Hale Boyes found that the committed WAL-record description had swapped max_wal_senders and max_worker_processes arguments in #34; Michael corrected their order in b7ec820559 and confirmed the fix in #35.
- The feature and its immediate follow-up fix were committed by the end of the thread, with Oleksii thanking the participants in #36 and no remaining attached patch awaiting review.