model-writtenrun 8974 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrew Dunstan opened the thread by announcing 9af34f3c6b, which redirected unused stdin through pseudoterminals on non-Windows platforms to prevent programs such as OpenSSL from reopening /dev/tty, using an empty pipe on Windows #1.
- Michael Paquier reported TAP failures caused by missing IO::Pty, and Peter Eisentraut reported a macOS failure; Tom Lane suggested detecting the module or requiring it, while Michael opposed making a platform-specific dependency mandatory #2 #3 #4 #5.
- Andrew Dunstan attached a fix that detected IO::Pty, used an empty pipe when unavailable, and exposed $have_io_pty so dependent tests could skip themselves; Tom Lane gave an untested visual approval, and the fix landed as 792dba73c8 #6 #7.
- Tom Lane then reported that macOS could hang even with IO::Pty installed and supplied an inline change replacing the end-of-transmission character with an empty string, which resolved his local reproduction #8.
- Andrew Dunstan tested Tom's alternative on Linux and found that it hung some planned tests, so he proposed reverting the stdin changes and marking affected libpq-sslpassword tests TODO with todo_skip; Michael Paquier supported reverting because buildfarm animals remained stuck #9 #10 #11.
- Andrew Dunstan subsequently committed ca266a069a, reverting both the original stdin change and the IO::Pty detection fix because the approach was not portable, leaving a portable solution unresolved.