model-writtenrun 6323 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- The thread opens with Thomas Munro's announcement of 7c09d2797e, which added PSQL_WATCH_PAGER and replaced Unix watch polling with sigwait for responsive cancellation and more accurate timing #1.
- Tom Lane warned that old HPUX lacked POSIX-style sigwait #2, prompting Munro's function-availability check #3; Lane explained that detecting the function alone could accept an incompatible API #4.
- Build-farm failures exposed both an unresolved sigwait symbol on HPUX and a single-argument declaration on Solaris #6, so Munro added a POSIX-signature check and corrected error handling #7, then added a declaration-presence check #9.
- Lane supplied a revision that made the configure checks conditional, incorporated pthread flags, and moved the thread-safety failure out of config/thread_test.c #10.
- Further Solaris testing showed that configure accepted sigwait with pthread flags while psql compiled without them; Lane questioned retaining sigwait and suggested isolating its use or disabling it on Solaris #11, while Munro obtained an illumos environment to investigate #12.
- Munro retained sigwait and revised Lane's patch to select POSIX interfaces across Solaris builds, moving _POSIX_PTHREAD_SEMANTICS into the platform's CFLAGS and simplifying the psql guards #13.
- Lane moved the define into configure.ac's CPPFLAGS handling to preserve it with custom CFLAGS, tested the final revision on Solaris, and declared it ready #14.
- Munro committed the final attachment unchanged as 5865e064ab and confirmed it was pushed in the thread's last message, leaving no attached fixes outstanding #15.