model-writtenrun 4766 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Sravan Kumar observed that the archiver's two consecutive time() calls made its timeout calculation effectively constant and asked whether to simplify it in #1; Kyotaro Horiguchi agreed and proposed removing the redundant variables and conditional branch in #2.
- Sravan submitted the simplification in #3, passing PGARCH_AUTOWAKE_INTERVAL directly to WaitLatch() while preserving postmaster-death handling.
- Bharath Rupireddy suggested eliminating periodic wakeups entirely in #4, but Sravan kept that behavioral change outside this cleanup in #5; Kyotaro explained that interrupted archiving still needs retries and that eliminating polling would require tracking incomplete iterations in #6 and #7.
- Nathan Bossart endorsed the simplification and supplied an indentation fix plus removal of time.h in #9, then restored the include after noticing other time() calls in the file in #10.
- Michael Paquier committed #10 as 38cc085464, adding a neutral-wording comment edit, and confirmed the application in #11; the cleanup was complete, while eliminating periodic wakeups remained outside its scope.