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 1tXnqw-00EVGu-Ro for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jan 2025 20:49:35 +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 1tXnqv-0044oe-0T for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jan 2025 20:49:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tXnqu-0044oW-CG for pgsql-hackers@lists.postgresql.org; Tue, 14 Jan 2025 20:49:32 +0000 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tXnqt-000Q6q-0l for pgsql-hackers@lists.postgresql.org; Tue, 14 Jan 2025 20:49:31 +0000 Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-7b6f95d2eafso632902585a.3 for ; Tue, 14 Jan 2025 12:49:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736887770; x=1737492570; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Gepb7+4BiNrFdnTS9mCROXpZFusSgLH52vwwtBcbpvM=; b=ZbD16SDgUfPaabma6a1AWmpp6gpo1eGWwsrRV+Pcm+9v1BBRARNsfAUPKmbUyhC7K1 4cFOyWXK3cC+5duc+yGBIr5NoAPaAX2JAIexrHAwAcda20ViiFXNmBCJzFy4ajtNx4WW fvsy1d1pUNYZL5ot4I4YJ7np05yVyVuemgJkHuf/wh1+MB2Hz3dtUVoloOqc32IEcH6d UPEIh+yRSXACMX18rZjS2lJkcZ9Lkf96nI8gIQXZogcc6YYzKuay2xApshYxmCZnpkbI nPYpOxN35j1HvJJG2UZn2GZV+Hp1DzXYc91qBjDCbBlOBP+U9LcktlxxEjWZDbsa+Lzc 7mBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736887770; x=1737492570; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Gepb7+4BiNrFdnTS9mCROXpZFusSgLH52vwwtBcbpvM=; b=qjnYNEqxKSQrBdbxEJSK94ke9OiXvYI2gPZG+Pn+IOo4en9/iVHzH3qs9EQppbfHyI jHHljJO5DLUJZ0US7ntN82ftwklYHTznJZEE8LPH6WNJI8lgMjQfmDWO7XrxY4vvAU+r O+kcvvIeMXjtoSVOtYDlbJfrIvb0JfakKr9jJFVorVbe9i0gQ5zY8TSf7U6PLpihk6kO dXLId/GAH18fRA1VWBnvHz1svmXJwZ2YG6/CkveawNP7c/8gLzo1OJX5UFs9pbxrjK4o 66G6uWsDvR+cpLqMc+mcSMHN8P7wiVBqH6Q0ij/qeNPcpa0fNt61lhQyR9kN6wU598h3 dIiQ== X-Forwarded-Encrypted: i=1; AJvYcCVU1QSG0y/V33iZTc6dT62Bt7YZlnQu+a7bS5pftRgoPVgp2F+GlywW6IyItsyoTFg0CiSMb93pCPklnIRa@lists.postgresql.org X-Gm-Message-State: AOJu0YzuKItUqJX8gRgi/4U9CzWgxteZG9sMp+kIZbhIScLpU7tB2Z52 mpRpSKRBj76DY3Y9PH4rPnL1ixo0p8x83OaBNWTaVeShr2fXBH0Z X-Gm-Gg: ASbGncvHWMrRkun8kMKCM5hk9ARzblkOtmfKtF2x35N1NdV+BawWwmiB2PD8/shzbWP /X04kiHNyBIC9uWN9SzfLut0cKGhfqRsoOq6dizC5829CMmXf+YkqNtHA1st8HKBR9QEUIDR718 xJzVhWtlXyZDrQsiJ8mUCkQAH6F2j3NuDgcmfyaNzmf+AReEzSy4hgXqNN+1KN3YfjowISsx9qm tKcdJf4SyeXZ3WOG7HVKwoNfxUKfFTTfzcg09kiIz0sE7FcGKURFpRc7l5NrZmS8FpS4FG6rgkP wItUgKwT9su4vYovGjh8fcTtlhO0kEghbDIWncOuo2A+buA= X-Google-Smtp-Source: AGHT+IH2rbOvWpjBrixVCPdMCU0lEWw35gaObnlvSR6ukyYvWLyBMDLQeMXFJIrfpPcJkQTd5csEcQ== X-Received: by 2002:a05:620a:4409:b0:7b6:78e9:1ea2 with SMTP id af79cd13be357-7bcd96e710amr3435550385a.4.1736887769898; Tue, 14 Jan 2025 12:49:29 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7bce327bafasm643138885a.63.2025.01.14.12.49.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2025 12:49:29 -0800 (PST) Date: Tue, 14 Jan 2025 14:49:27 -0600 From: Nathan Bossart To: Tom Lane Cc: Fujii Masao , Andy Fan , pgsql-hackers@lists.postgresql.org Subject: Re: pgbench error: (setshell) of script 0; execution of meta-command failed Message-ID: References: <87ikqn5em7.fsf@163.com> <2422778.1736521065@sss.pgh.pa.us> <2425050.1736522451@sss.pgh.pa.us> <127979.1736622253@sss.pgh.pa.us> <570943.1736808714@sss.pgh.pa.us> <717458.1736884349@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <717458.1736884349@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Jan 14, 2025 at 02:52:29PM -0500, Tom Lane wrote: > After more thought I've realized that the asymmetrical detection > here isn't all that bad, because the outcomes are different. > If we fail to catch old-headers-and-new-library, the result will > either be a link failure or (if the extension uses libpq) silently > linking to libpq's pqsignal, which was likely not what was intended. > If we fail to catch the other case, the result is always a link > failure, and that will happen at build time not in the field. Assuming libpgport is only used as a static library, I think that makes sense. My web searches indicate that it is possible to do things like convert a static library to a dynamic one, but perhaps that's far enough beyond the realm of things we care about. > So now I'm inclined to include the ABI-compatible wrapper, which > will ensure that extensions continue to link to libpgport's pqsignal. Fine by me. -- nathan