Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lzoNJ-0000QM-Gd for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Jul 2021 22:44:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lzoNH-0004ub-0G for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Jul 2021 22:44:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lzoNG-0004uT-OY for pgsql-hackers@lists.postgresql.org; Sat, 03 Jul 2021 22:44:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lzoNA-00057W-F7 for pgsql-hackers@postgresql.org; Sat, 03 Jul 2021 22:44:33 +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 163MiKLq1288325; Sat, 3 Jul 2021 18:44:20 -0400 From: Tom Lane To: Noah Misch cc: Alvaro Herrera , Michael Paquier , Jacob Champion , "pgsql-hackers@postgresql.org" , Daniel Gustafsson , info@cspug.cz Subject: Re: Preventing abort() and exit() calls in libpq In-reply-to: <20210703214658.GA2421985@rfd.leadboat.com> References: <202107021459.7c2dkzyg5lua@alvherre.pgsql> <819502.1625239217@sss.pgh.pa.us> <20210703001639.GB2374652@rfd.leadboat.com> <1231771.1625321413@sss.pgh.pa.us> <1233492.1625323559@sss.pgh.pa.us> <20210703214658.GA2421985@rfd.leadboat.com> Comments: In-reply-to Noah Misch message dated "Sat, 03 Jul 2021 14:46:58 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1288323.1625352260.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 03 Jul 2021 18:44:20 -0400 Message-ID: <1288324.1625352260@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Noah Misch writes: > On Sat, Jul 03, 2021 at 10:45:59AM -0400, Tom Lane wrote: >> What I'm now thinking about is restricting the test to only be run on >> platforms where use of foo.a libraries is deprecated, so that we can >> be pretty sure that we won't hit this situation. Even if we only >> run the test on Linux, that'd be plenty to catch any mistakes. > Hmm. Static libraries are the rarer case on both AIX and Linux, but I'm= not > aware of a relevant deprecation on either platform. If it comes this to= , I'd > be more inclined to control the Makefile rule with an environment variab= le > (e.g. ENFORCE_LIBC_CALL_RESTRICTIONS) instead of reacting to the platfor= m. That'd require buildfarm owner intervention, as well as intervention by users. Which seems like exporting our problems onto them. I'd really rather not go that way if we can avoid it. regards, tom lane