model-writtenrun 2711 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reproduced OpenBSD regression failures caused by its default semaphore limit forcing max_connections to 20, leaving no room for transient reconnections in parallel tests, and also reported a related hang in #1.
- Tom Lane proposed raising initdb's minimum connection count to 25 in #2, Andrew Dunstan endorsed that value in #3, and Tom's investigation led to a three-part proposal: raise the connection minimum, allocate 19 usable semaphores per set, and lower max_wal_senders in #4.
- Andres Freund argued that lowering max_wal_senders would hurt replication users in #5, so Tom retained its existing default and narrowed the fix to the connection minimum and semaphore-set size in #6.
- Thomas Munro posted an alternative three-patch futex semaphore implementation with macOS selection in #7, explaining that broader ideas for replacing semaphore-based locking had stalled it; Tom raised concerns about undocumented NetBSD and macOS interfaces in #8.
- Peter Eisentraut asked why the longstanding BSD limits had become more troublesome in #9, and Tom explained that additional background-process slots had consumed the available headroom and that the proposed adjustments would leave four spare semaphores in #10.
- Andres suggested unnamed POSIX semaphores in #11, but Tom identified missing cross-process support on OpenBSD and file-descriptor constraints on NetBSD in #12; they agreed to the small SysV adjustment without lowering default process limits in #13 and #14.
- Tom's OpenBSD benchmarks showed improved named POSIX semaphore performance but remaining startup costs, prompting a possible future switch while preserving the need for the immediate NetBSD fix in #15.
- Tom committed the discussion-derived fix as 38da053463, increasing SEMAS_PER_SET to 19 and initdb's minimum trial connection count to 25 with matching documentation; the attached futex series remained uncommitted in this thread.
- After the commit, Alexander traced the hang to a failed reconnection leaving a prepared transaction unfinished in #16; Tom concluded that this explained the wait and treated possible improvements to serializable transactions blocked by prepared transactions as research rather than a bug fix in #17.