Dec 2020

1 commit
Fix race condition between shutdown and unstarted background workers.
24 Dec 2020Tom Lanemaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1REL_13_STABLE13.2+3 more
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #10 of 1 reviewer saw the final version

The commit retains the cancellation mechanism and interfaces from #1, but src/backend/postmaster/bgworker.c cancels pending workers with waiters regardless of restart policy, rejects all new requests during shutdown, and clears notification PIDs after crashes. It also reorders signal handling in src/backend/postmaster/postmaster.c and updates API and autoprewarm comments, implementing the refinements explained in #4 and #5.

  • Bharath Rupireddysaw an earlier versionLLM analysis, 99% sureIn #3, he questioned signal-handler ordering and identified the omitted restartable-worker case, prompting the subsequent logic changes described in #4 and #5.

Credits across 1 commit

Author
Tom LaneLLM1
Committer
Tom Lane1

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