model-writtenrun 3187 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Crisp Lee reported that a successful recovery-target shutdown produced a misleading pg_ctl startup failure and proposed a recovery.done marker file to distinguish it in #1.
- Andres Freund proposed inspecting pg_control instead of adding state in #2; after discussion of the database states, Junwang Zhao replaced the marker-file design with a DB_SHUTDOWNED_IN_RECOVERY check in #6, and Crisp accepted the corrected interpretation in #8.
- Nazir Bilal Yavuz tested the revised behavior and requested punctuation and enum-order fixes in #9; Junwang incorporated those changes in #10, which Nazir approved in #11.
- Nathan Bossart argued that the proposed messages remained alarming and vague in #12, prompting clearer wording and an enum rename in #13; Alvaro Herrera then supplied an explanatory comment and recovery-target wording in #14, adopted in #15.
- After nearly six months, Laurenz Albe supplied #16, consolidating the Windows and Unix control-state checks, removing the enum comment, and shortening the first status message to 'done'; Junwang approved the revision in #17.
- Immediately before the commit, Fujii Masao pointed out in #18 that manual shutdown during recovery could trigger the same result, making the recovery-target explanation inaccurate.
- Tom Lane committed #16 as cd85ae1114 with one added explanatory code comment and announced the landing in #19.
- Tom defended the committed wording as useful guidance for the expected startup scenario in #20, while Fujii described a manual-shutdown counterexample in #21; the patch remained landed, with the wording objection unresolved and no follow-up patch shown.