model-writtenrun 4016 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Heikki Linnakangas opened the thread with #1 after moving background-worker allocations into PostmasterContext exposed a worker_spi crash under EXEC_BACKEND: extension preload callbacks were registering workers in child processes where PostmasterContext was null.
- The three patches in #1 restricted static registration to postmaster before shared-memory initialization while tolerating backend preload callbacks, moved backend bookkeeping allocations into PostmasterContext, and corrected a misleading entry-point comment; returning registration success and adding postmaster-only assertions were mentioned as possible future work but not implemented.
- Thomas Munro connected the problem to his attempt to move more postmaster state into PostmasterContext in #2, and Heikki initially believed these patches would unblock that work in #3.
- Heikki posted #4 with only comment and indentation cleanup, retaining the original design and all three patches.
- Thomas approved all three patches in #5, reported successful EXEC_BACKEND testing, checked allocation-failure and cleanup behavior, and suggested naming the worker entry point BackgroundWorkerMain(); he also clarified that hiding BackgroundWorkerList still faced an unresolved context-passing problem through extension initialization callbacks.
- The registration checks landed unchanged from #4 as 1ca312686e, and the PostmasterContext allocation changes landed modulo rebase offsets as 0bbafb5342.
- The comment correction from #4 landed with Thomas's suggested rename and corresponding caller and declaration updates as 637109d13a; Heikki confirmed all three patches were pushed in #6, completing the submitted series.