model-writtenrun 119 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Hayato Kuroda reported that Windows pg_ctl could incorrectly report successful startup for an already-running cluster because its PID-file check accepted a two-second timestamp window without checking the launched postmaster's PID #1, and Michael Paquier agreed that this should report failure #2.
- Hayato first moved the child-liveness check ahead of PID-file inspection #3, but Kyotaro Horiguchi explained that this still failed to associate the PID file with the launched process and supplied Windows process enumeration instead #4.
- Hayato's interface review, CI testing and compiler-warning fixes led to a pid_t-based helper with corrected diagnostics, but testing exposed launcher shells with multiple children #6 #7 #8 #9.
- Kyotaro found unrelated programs beneath cmd.exe and split out a patch adding /D to disable autoruns, while retaining executable-name filtering because extra children still appeared with /D enabled #11.
- Hayato confirmed that removing the Windows-only sleep in the pg_ctl test reproduced the original failure and that Kyotaro's patches fixed it, adding that test change as a third series component #12.
- Shlok Kyal's Windows testing identified a changed startup-failure diagnostic #13; Hayato introduced explicit validity reporting #15, then Kyotaro simplified the handling by relying on the caller's existing death check and standardized the API error messages #16 #18.
- Robert Haas and Michael Paquier supported disabling autoruns but questioned executable-name assumptions and the explanation of process relationships in the remaining fix #19 #20.
- Michael committed only the unchanged autorun component of #18 as 9886744a36, leaving PID discovery and test-sleep removal outstanding #21.
- Michael proposed extending the restriction to pg_regress #21, Tom Lane supported it #22, and the unattached one-line extension landed as b83747a8a6, with successful local and CI testing reported afterward #23.
- Kyotaro resent the two remaining patches with expanded comments explaining parent/child PID matching and the unexplained extra cmd.exe processes #25, and Robert found the added explanation helpful #26.
- A later workshop review raised possible simplification of timestamp checks #27; Kyotaro explored launcher identifiers #29 #30, Andrew Dunstan generally approved process enumeration #31, and Noah Misch proposed a random token written into postmaster.pid as a platform-independent alternative #32.
- Noah also observed that disabling autoruns in only two launch paths created inconsistent Windows behavior and recommended reverting those changes #32; Michael agreed to restore consistency rather than expand the behavior late in the release cycle #33.
- The two-file autorun rollback appears in the supplied candidates fa1a63dffc and 74b8e6a698, with Michael announcing the revert and its application through PostgreSQL 17 #34.
- Sutou Kouhei proposed launching postgres.exe directly with Windows handle-based redirection to obtain its PID without process enumeration #35; Yasir reported that the existing enumeration patch fixed the bug without regression failures #36 #37, while Robert summarized the three competing approaches and the lack of a settled next step #38.
- After a long gap, Bryan Green implemented Sutou's direct-launch proposal using CreateProcessAsUser and native redirection, reported Windows test success, and argued against adding cross-platform token infrastructure #40; he promptly corrected restricted-token SID handling in a revised proof of concept #41.
- Alvaro Herrera rebased Bryan's patch, favored direct launch for the development branch, suggested a less intrusive approach for backpatching, and questioned the newly introduced duplicate global PID state #42.
- Harrison Booth's final standalone rework keeps the PID local, reuses existing token and job restrictions, and opens append-only startup logs under the restricted identity #43.
- Harrison reported successful native x64 and ARM64 testing under several Windows identities while distinguishing existing Unicode failures and static applicability from runtime validation; the thread ends awaiting a decision on this alternative, with the startup fix still uncommitted and the earlier autorun changes reverted #43.