model-writtenrun 5094 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane reported that a backend overwriting shared memory could crash the postmaster and prevent automatic recovery; his initial patch moved slot counters into private storage and treated exhausted shared slots like fork failure #1.
- Andres Freund accepted the initial fix but suggested private slot-allocation bookkeeping, while also raising shared-memory guard pages and deferring child-startup deduplication as separate work #2; he clarified that an additional private array could coexist with the shared child-status flags #4.
- Tom intended to backpatch the fix after the release freeze #3 and agreed to explore Andres's private-array design #5.
- Tom submitted a replacement using a private PMChildInUse array, eliminating the need for the initial postmaster.c error-handling changes, and said he would push it after the freeze lifted #6.
- Andres questioned why allocation could be skipped when PostmasterContext was null #7; Tom explained that standalone backends need neither the array nor its allocation context, leaving the patch unchanged and awaiting the planned push at the thread's end #8.
- The revised patch #6 subsequently landed unchanged as 18a4a620e2, with backports to all supported branches.