From: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, Andy Fan <zhihuifan1213(at)163(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: pgbench error: (setshell) of script 0; execution of meta-command failed |
Date: | 2025-01-14 16:29:53 |
Message-ID: | Z4aRAdGdw8GiU7ba@nathan |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Jan 13, 2025 at 05:51:54PM -0500, Tom Lane wrote:
> It's fair to worry about this, but I don't think my testing that would
> prove a lot. AFAICS, whether somebody runs into trouble would depend
> on many factors like their specific build process and what versions of
> which packages they have installed.
>
> In any case, I think we have a very limited amount of wiggle room.
> We definitely cannot change libpq's ABI without provoking howls of
> anguish.
Fair point.
> I have been wondering whether it would help to add something like
> this at the end of port/pqsignal.c in the back branches:
>
> #ifdef FRONTEND
> #undef pqsignal
>
> /* ABI-compatibility wrapper */
> pqsigfunc
> pqsignal(int signo, pqsigfunc func)
> {
> return pqsignal_fe(signo, func);
> }
> #endif
>
> (plus or minus an extern or so, but you get the idea). The point of
> this is that compiling against old headers and then linking against
> newer libpgport.a would still work. It does nothing however for the
> reverse scenario of compiling against new headers and then linking
> against old libpgport.a. So I haven't persuaded myself that it's
> worth the trouble -- but I'm happy to include it if others think
> it would help.
After sleeping on it, I think I agree that the extra gymnastics aren't
worth it to partially fix something that wasn't supported anyway. But I'm
not mortally opposed to it if someone feels strongly that it should be
included.
--
nathan
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2025-01-14 16:34:49 | Re: ecpg command does not warn COPY ... FROM STDIN; |
Previous Message | Nathan Bossart | 2025-01-14 16:23:01 | Re: Support --include-analyze in pg_dump, pg_dumpall, pg_restore |