model-writtenrun 2644 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nathan Bossart opened the thread with #1, proposing to make libpgport's pqsignal() return void because its previous-handler result could be unreliable and callers ignored it; a separate declaration for libpq's legacy implementation now allowed this without an SONAME bump.
- Tom Lane approved the general change but questioned its Windows error check in #2; after Nathan reported a Windows CI assertion failure in #3, Tom supported dropping that check in #4, and Nathan submitted that revision in #5.
- Thomas Munro challenged the suspected SIG_ERR mismatch in #6, observing that the redefined constants matched current system values and suggesting that unsupported signal numbers caused the failure; he also proposed deleting the redundant definitions.
- Nathan confirmed that initdb was registering the emulated SIGHUP with Windows' native signal() in #8 and proposed hiding the extra signal definitions from frontends, an approach Thomas supported in #9.
- In #10, Nathan explained that pgkill() and other frontend code still needed those definitions, so he instead guarded initdb's unsupported registrations with WIN32 checks, restored the assertion, and supplied a separate macro-removal patch; Thomas acknowledged the solution in #11.
- Nathan split the initdb fix out of #10 and extended it to pg_test_fsync and pg_regress before landing 5cda4fdb0b, then committed the unchanged void-conversion and assertion hunks as d4a43b2837.
- The separate SIG_* macro-removal patch from #10 landed unchanged as 0dc9c7d200.
- Nathan confirmed that all the work had landed in #12, explaining that the additional invalid-signal callers escaped earlier testing because they were not tested and that he would monitor the buildfarm for problems with removing the macro redefinitions.