model-writtenrun 6914 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andres Freund traced intermittent Windows AIO test failures to BackgroundPsql observing stdout before preceding stderr, and proposed waiting for numbered, newline-terminated separators on both streams in #1.
- Daniel Gustafsson suggested an explicit terminator after the query counter and supported keeping diagnostic output in #2.
- Andrew Dunstan proposed replacing fragile BackgroundPsql interactions with an independently developed libpq Session object using FFI or XS bindings in #3; Andres supported the direction but explained that tests exercising psql itself would still need subprocess support in #5 and #8.
- Andres incorporated Daniel's separator change and extended the fix to connection startup in #4, where he also proposed backporting two earlier infrastructure changes to avoid behavioral differences between branches.
- Jacob Champion considered both prerequisite backports low risk in #7, Michael Paquier supported them after considering external usage in #16, and Noah Misch explicitly approved the second separator patch in #10.
- The IPC::Run discussion distinguished query-boundary synchronization from collecting output after process exit: Noah explained the ambiguity of reconstructing separate pipe writes in #14, identified an upstream fix for Tom Lane's separate macOS symptom in #18, and Thomas Munro proposed eliminating the Windows pipe/socket proxy in #26.
- The empty-result prerequisite landed as 31a242e90c, backporting Jacob's optional-newline banner removal and recovery-test adjustments originating in #574844 of thread #49589; this thread coordinated the backport, and Andres reported successful CI testing and publication in #27.
- The asynchronous-start prerequisite landed as 49b6f4a02b, backporting Jacob's wait parameter and public wait_connect() method originating in #574844 of thread #49589; this thread coordinated that backport too, with publication reported in #27.
- Andres then committed #4 as 8b886a4e34 with only whitespace changes, announcing that the fix had been pushed after observing no problems in #28.
- The separate IPC::Run output-loss issue remained troublesome in March, prompting Andres's release request in #29; Noah announced a fresh upstream release in #31, and Tom confirmed updating his macOS buildfarm machines in #34.
- Arseniy Mukhin reported a new BackgroundPsql hang in #35: removing a stderr banner also removed the preceding newline, so retained warning text prevented the next banner from matching; the supplied thread shows no direct fix for this report.
- After roughly a year, Andrew resumed the Session replacement with #36, reporting removal of background_psql() calls and passing TAP tests while identifying unresolved XS problems.
- Andres tested that replacement and found sharply increased runtime from sleep-based polling plus an OAuth test failure in #37; Andrew responded with socket-based waits, pipelined queries and test corrections in #38.
- Andres identified FFI::C as an avoidable Windows dependency in #39, and Andrew replaced it with FFI::Platypus::Record in #40, reporting successful Windows testing apart from two xid_wraparound timeouts.
- Andrew returned in June with a three-patch series in #41, removing the problematic XS alternative, adding destruction-time safeguards and separating the framework from its integration and test conversions.
- Windows fixes in #42 addressed connection-user selection, error reporting, PGOPTIONS and library discovery, after which Andrew reported all tests passing on his Windows machine; #43 rebased the series and converted a newly introduced background_psql() use.
- The series expanded to five patches in #44, adding FFI::Platypus dependency checks, documentation and CI setup changes, together with further FFI teardown and test corrections.
- Following additional review, #45 strengthened timeout and error handling, made asynchronous test assertions explicit, improved reconnection behavior and removed unused code while retaining the Session architecture.
- Andrew withdrew the Session commitfest entry in #46, citing a separate discussion whose contents are absent here; the BackgroundPsql separator fix and both prerequisite backports had landed, while the Session replacement remained uncommitted in the supplied record.