model-writtenrun 8814 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Vignesh C reported a pg_restore assertion failure during cleanup after incomplete worker creation and proposed tracking the actual worker count in pstate->numWorkers in #1; he later supplied reproduction steps using roughly 600 restore jobs in #2.
- Tom Lane rejected changing the meaning of numWorkers and supplied a replacement using explicit worker startup status and running-state checks in #3, alongside a random fork-failure reproducer explicitly excluded from commit.
- Ahsan Hadi confirmed that both fixes resolved the issue without new regression failures in #4, and Vignesh confirmed that Tom's replacement fixed his test in #5; Ahsan also recorded successful installcheck-world testing in #6.
- Tom Lane committed the production fix from #3 unchanged as 2425f8f714 and backpatched it to all supported branches, adapting older branches to retain their existing worker-status enum.
- Tom Lane announced the push in #7, closing the thread with the worker-status fix landed, the original worker-count approach superseded, and the diagnostic fault injection intentionally uncommitted.