I wrote: > OK, I'll make it so. Thanks for looking at it! Or not. My idea worked okay in v17, but not in older branches. Pre-v17, libpq itself can call pqsignal (though only in non- thread-safe builds). With this patch, that would have resulted in pulling src/port/pqsignal.o into libpq. libpq itself is fine with calling that version, but if a stub version of pqsignal() comes along for the ride then we have two candidates for which function will be exported.
It would probably be possible to fix that, say by making the wrapper version be a separate .o module within libpgport. But it would be more work and complication, and I couldn't get excited about investing such effort for a hypothetical build problem. So I've pushed the patches as I originally proposed them. If anyone else is excited about doing something more, step right up. regards, tom lane