Oct 2023

3 commits
Rename StartBackgroundWorker() to BackgroundWorkerMain().
9 Oct 2023Heikki Linnakangasmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #41 of 1 reviewer saw the final version

Expands the third patch in #4 from correcting a comment into renaming StartBackgroundWorker() to BackgroundWorkerMain(), updating its declaration and both callers without changing behavior. Thomas proposed the name in #5, and Heikki confirmed adopting it in #6.

  • Thomas Munrosaw the final versiontrailerIn #5, Thomas approved the comment fix and proposed the function rename adopted in the committed version.
Allocate Backend structs in PostmasterContext.
9 Oct 2023Heikki Linnakangasmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #41 of 1 reviewer saw the final version

Matches the second patch in #4 modulo rebase offsets in src/backend/postmaster/postmaster.c, including PostmasterContext allocation, free-to-pfree conversions, and removal of the redundant child-side free.

  • Thomas Munrosaw the final versiontrailerIn #5, Thomas approved the allocation patch after checking preserved OOM logging, postmaster-side pfree calls, and child cleanup through deletion of PostmasterContext.
Clarify the checks in RegisterBackgroundWorker.
9 Oct 2023Heikki Linnakangasmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #41 of 1 reviewer saw the final version

Exactly matches the first patch in #4 in src/backend/postmaster/bgworker.c, adding early returns for backend preload calls and rejecting static registration after shared-memory initialization.

  • Thomas Munrosaw the final versiontrailerIn #5, Thomas approved the registration checks, reported passing CI, and successfully tested EXEC_BACKEND locally with pg_prewarm in shared_preload_libraries.

Credits across 3 commits

Author
Heikki LinnakangasLLM3
Reviewer
Thomas Munro3
Committer
Heikki Linnakangas3

N LLM means N of the credits come from LLM analysis, not from commit trailers.