Re: pgbench error: (setshell) of script 0; execution of meta-command failed - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pgbench error: (setshell) of script 0; execution of meta-command failed
Date
Msg-id 1143416.1736899081@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgbench error: (setshell) of script 0; execution of meta-command failed  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Reorder shutdown sequence, to flush pgstats later
Next
From: Masahiko Sawada
Date:
Subject: Re: Conflict detection for update_deleted in logical replication