model-writtenrun 5679 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bharath Rupireddy reported Windows Server 2019 regression failures with refused localhost connections #1, and Thomas Munro suspected that the server started by the startcreate step had disappeared before the tests #2.
- Tom Lane questioned the CI environment and port selection #3, while Andres Freund showed that the server had successfully started listening and subsequently disappeared without logging a shutdown after a Cirrus agent update #4 #6.
- Tom Lane noticed that pg_regress misleadingly reported a Unix socket #5; Andres Freund explained that the connection actually used localhost #7, and Tom corrected the diagnostic to follow libpq's DEFAULT_PGSOCKET_DIR handling, with backpatches through PostgreSQL 13 #8 9240589798.
- Andres Freund tried running PostgreSQL as a Windows service and proposed console or process-group changes #10 #11, but Thomas Munro found that creating a new process group did not fix CI #12.
- The service workaround allowed tests to progress but broke dblink and postgres_fdw because the service ran as SYSTEM and redirected logging to the event log #13; Tom Lane requested an explanation before changing the tests #14, and Andres traced the username mismatch but could not successfully start the service as the current user #16 #18.
- Thomas Munro also tested detached processes and new consoles without success #19, and Andres Freund concluded that the local Ctrl-C process-group problem was separate from Cirrus's handling of background processes #20.
- Andres Freund proposed temporarily pinning the Cirrus agent to version 1.73.2 #20, Thomas Munro supported putting the workaround in the tree to repair developer branches and the official mirror as well as cfbot #21, and Andres tested and committed the pin #22 #23 770011e3f3.
- After the workaround landed, Andrew Dunstan explained the Windows privileges required to run and manage a service #24, but the thread did not adopt the service approach.
- Two weeks later, Andres Freund supplied a tested patch replacing the agent pin with the newly available CIRRUS_ESCAPING_PROCESSES setting #25; he explained that using Cirrus background scripts remained awkward because PostgreSQL's tools lacked convenient independent startup and shutdown waits, while pg_ctl also performed necessary privilege dropping.
- Andres Freund committed the attached patch unchanged, reverting the temporary pin while preserving the background server 50b1e8c51b; his final message confirmed the push and left a better background-startup recipe as an open improvement, with no attached patch remaining pending #26.