model-writtenrun 2712 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane reported that semaphore allocation could leave insufficient file descriptors despite a successful --check, while bootstrap and single-user modes also lacked stack-depth protection; his initial patch added both missing initialization steps, and he tentatively favored no backpatching #1.
- Tom Lane then redesigned the stack fix around a single set_stack_base() call in main(), providing consistent coverage for all server modes and removing the existing calls elsewhere #2.
- At the thread's last message, Tom Lane kept file-descriptor initialization as a separate fix after CreateSharedMemoryAndSemaphores() and proposed moving stack-depth code out of postgres.c without yet choosing its destination #2.
- The stack fix landed from #2 as c91963da13, with the additional extraction into src/backend/utils/misc/stack_depth.c and corresponding build and header changes.
- The file-descriptor portion of #1 then landed separately as 21fb39cb07, completing both fixes; the supplied record contains no other participants' reviews and lists no backports.