model-writtenrun 7691 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andres Freund reported that Windows Docker CI processes were incorrectly classified as services, redirecting errors from stderr to the Windows event log and breaking tests, and proposed replacing heuristic detection with an explicit service parameter in #1.
- Andrew Dunstan supported a parameter passed through pg_ctl in #2, while Magnus Hagander warned that installers might bypass pg_ctl registration and suggested setting it during runservice or logging to both destinations in #3 and #5.
- Andres proposed checking whether stderr was usable in #4, and Alvaro Herrera supported combining that check with existing service detection because either heuristic alone could misclassify processes in #7.
- Windows VM investigation showed that services had NULL standard handles but their PostgreSQL children acquired console handles, so Andres identified explicit handle inheritance as necessary in #8.
- Andres submitted #9, making valid stderr rule out service status and teaching pg_ctl to pass inherited standard handles with NULL converted to INVALID_HANDLE_VALUE; he proposed landing only on master and left an explicit service GUC as future work.
- After Andres revived the work to enable more CI tests in #10, Ranier Vilela suggested an untested SECURITY_INTERACTIVE_RID alternative in #11; Andres rejected it because non-service PostgreSQL processes launched beneath services could also lack that membership in #13.
- Magnus reviewed the documented GetStdHandle behavior and possible corner cases in #12, supporting a master-only landing despite uncertainty about unusual Windows environments.
- Andres committed #9 with only comment and commit-message changes as 76e38b37a5 and confirmed completion in #14; the fix landed without backpatching, while an explicit Windows-service flag remained unimplemented.