model-writtenrun 9067 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Thomas Munro opened the thread with #1, explaining that concurrent parallel hash joins could exhaust DSM slots and proposing both a configurable slot allowance, originally requested by Andres Freund, and DSA segment sizes that double after two allocations instead of four.
- Robert Haas reviewed the proposal in #2 and argued that users would struggle to configure the new GUC, recommending five fixed DSM slots per backend instead; he also suggested using estimated memory demand to guide allocation sizes.
- Andres Freund supported increasing the default while questioning max_connections as a workaround in #3, and clarified that hash tables already allocate their predicted size while their entries could benefit from allocation hints.
- David Fetter asked whether max_connections could change without a restart in #4, but Robert Haas explained in #5 that this would greatly expand the work.
- Thomas abandoned the GUC in #6, submitted the fixed-limit changes, and deferred allocation hints and related improvements for future work; he also added a separate patch exposing POSIX shared-memory allocation through the existing wait event.
- Thomas announced both patches committed in #7, initially declining back-patching because of the risk/reward balance; the wait-event patch landed unchanged as ef02fb15a3, leaving both submitted changes complete by the thread's final message.
- A later field complaint in thread #43257 prompted 2ded1f1fbb, which back-patched the fixed-limit changes and exactly preserves the first patch from #6.