Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tWGos-00FPuy-Pb for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2025 15:21:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tWGos-0001FG-09 for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2025 15:21:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tWGor-0001EJ-MX for pgsql-hackers@lists.postgresql.org; Fri, 10 Jan 2025 15:21:05 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tWGoo-000vUN-0C for pgsql-hackers@postgresql.org; Fri, 10 Jan 2025 15:21:05 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 50AFKpWc2425051; Fri, 10 Jan 2025 10:20:51 -0500 From: Tom Lane To: Fujii Masao cc: Andy Fan , pgsql-hackers Subject: Re: pgbench error: (setshell) of script 0; execution of meta-command failed In-reply-to: <2422778.1736521065@sss.pgh.pa.us> References: <87msfz5qv2.fsf@163.com> <87ikqn5em7.fsf@163.com> <2422778.1736521065@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 10 Jan 2025 09:57:45 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2425049.1736522451.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 10 Jan 2025 10:20:51 -0500 Message-ID: <2425050.1736522451@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > Since legacy-pqsignal is really not supposed to be used by clients > anymore, maybe we could just adjust it to set SA_RESTART for SIGALRM? > The other alternatives I can think of amount to re-introducing > link order dependencies, which would be horrid. Actually, after re-reading the thread that led to 06843df4a [1], I think a better idea is to introduce some macro magic to force frontend clients to use libpgport's version of pqsignal() instead of the one from libpq. We mustn't change the real name of libpq's version, but I think we could get away with that for libpgport. I'm a bit tied up today, but can look at this over the weekend if nobody beats me to it. regards, tom lane [1] https://www.postgresql.org/message-id/flat/467042.1695766998%40sss.pgh= .pa.us