model-writtenrun 3458 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Thomas Munro opened the thread with measurements showing substantial per-query process overhead in TAP tests, especially on Windows, and proposed either direct Perl connections or persistent psql sessions #1.
- Andrew Dunstan favored exploring a pure-Perl client while identifying FFI alternatives, and Noah Misch considered BackgroundPsql reuse the easiest approach and pointed to a potentially related IPC::Run delay #2 #3.
- Thomas Munro investigated a possible Windows pipe EOF problem and posted an opt-in safe_psql() session-caching prototype, warning that enabling it generally broke tests requiring no open connections #4 #6 #8.
- Andrew Dunstan demonstrated libpq calls through FFI::Platypus and developed a wrapper tested on Windows and Ubuntu; Thomas Munro confirmed FreeBSD operation, and they discussed a temporary fallback for installations lacking the dependency #10 #12 #13 #14.
- Andres Freund proposed adding a psql disconnect command so tests could retain the client process while releasing database connections, reducing process overhead without requiring persistent backend sessions #16.
- Robert Haas argued for explicit connection management and against environment-dependent fallbacks, while Tom Lane agreed about explicit reuse and raised concerns about FFI::Platypus availability and dependencies #17 #18.
- Dagfinn Ilmari Mannsåker clarified that Fortran dependencies were a packaging issue, Tom Lane successfully tested FFI::Platypus with Perl 5.14, and Robert Haas explained the maintenance and test-coverage tradeoffs between an FFI wrapper and a new wire-protocol implementation #19 #21 #23.
- Alvaro Herrera suggested reviving the historical Perl libpq wrapper, Andrew Dunstan supplied an expanded FFI module and requested conversion experiments, and Jehan-Guillaume de Rorthais offered to investigate the historical wrapper #24 #25 #26.
- After a several-month gap, Noah Misch reported upstream IPC::Run optimizations yielding a 7% improvement in GNU/Linux TAP check-world time and attached a small local backport, without confirming the suspected Windows EOF bug #27.
- The thread ends with Noah Misch’s backport proposal; the supplied commit subsequently lands that patch with a guard preserving existing SIGCHLD handlers, while persistent connections and the competing Perl client approaches remain unresolved in the supplied discussion #27 06558f4952.