model-writtenrun 7039 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrey Rudometov reported that the backend-cleanup refactor left crashed background workers with nonzero rw_pid values, preventing their restart when restart_after_crash was enabled #1.
- Andrey proposed continuing background-worker cleanup after HandleChildCrash() and supplied a pg_prewarm TAP reproducer with diagnostic logging #1.
- Fujii Masao acknowledged the report and patch, then directed attention to another thread where the same issue and its solution were already being discussed; this was the last message in the supplied thread #2.
- The fix subsequently landed from the later matching patchset #596470 in thread #51923 as b5d084c535, resetting rw_pid during ResetBackgroundWorkerCrashTimes(), preserving CleanupBackend()'s crash-path early return, and omitting this thread's reproducer and logging.
- The committed fix credits proposals by Andrey Rudometov and ChangAo Chen, co-authorship by Fujii Masao, and reviews by ChangAo Chen and Shveta Malik, and was backpatched to PostgreSQL 18 b5d084c535.