model-writtenrun 3349 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Xing Guo proposed using InitProcessing instead of BootstrapProcessing for auxiliary-process initialization because those processes were no longer initialized through the bootstrapper #1.
- Heikki Linnakangas agreed and pointed out that InitProcessing was already the initial value, recommending removal of redundant assignments in other process entry points as well; Xing implemented that cleanup and then added assertions guarding the assumed mode #2 #3 #4.
- Tom Lane questioned whether the postmaster could change the mode inherited by forked children and suggested moving child-only functions out of postmaster.c or asserting that the postmaster could not change the mode #5.
- Xing chose the relocation approach, submitting a three-patch series that moved background-worker helpers into bgworker.c, retained the processing-mode assertions, and additionally removed worker_spi's connection-by-name fallback on the assumption that its database OID was always valid #6.
- Heikki committed the relocation as 4d22173ec0, placing the unchanged helpers earlier in bgworker.c, and committed the processing-mode patch unchanged as eb21f5bc67; both came from #6.
- The thread ended with Heikki confirming that the first two patches had landed and rejecting the worker_spi change because launcher calls and static registration can legitimately use a zero database OID, and the proposed assertion also caused regression-test failures #7.