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 1lz14n-0000uM-Ii for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Jul 2021 18:06:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lz14l-0004cp-Pd for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Jul 2021 18:06:11 +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 1lz14k-0004b3-UY for pgsql-hackers@lists.postgresql.org; Thu, 01 Jul 2021 18:06:11 +0000 Received: from forward5-smtp.messagingengine.com ([66.111.4.239]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lz14f-0005hd-6W for pgsql-hackers@postgresql.org; Thu, 01 Jul 2021 18:06:09 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailforward.nyi.internal (Postfix) with ESMTP id 5B8DF1940B3B; Thu, 1 Jul 2021 14:06:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 01 Jul 2021 14:06:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=efJEHgK0Dp9+RijMV6JFO603R0lq1zboYKST1fSj0 IM=; b=pjjQ7/Z8Ogw/uQl8G2Lx0KB+86xblPFpNz3qLEmDzAKGDxcpjeOMGN0Rw OH0qdVjZoks40CfsTnIyFiV6Xn6MxVq826oAKZ8J743zwqeH7J7CVnfHznQFT57+ SrgfkoWaKO13BcBVHB/pqQp6EI83P7bWvj3a1TLFS5vUpSiAqG9/487Q5JWivKKx Darq70JbG/Ls95X8H/yEyvxuSzroGq8WBlwoKyfcqLbVLopim63u/viDxneNWsEM 6O+vmt6Vd57SpubxF7N48h5zzFvbY8KMdSFmYf3PIUGeWcR/VPpmWKCApykmVmjy fbxTk9IOm4HN57V5O76RiOrrU9daA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeiiedguddulecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeelveehheeuieduieet iedtkeeuteelfeetjeffieffudegvdffvdfftdeivdeukeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Jul 2021 14:06:01 -0400 (EDT) Subject: Re: Preventing abort() and exit() calls in libpq To: Jacob Champion , "tgl@sss.pgh.pa.us" Cc: "daniel@yesql.se" , "pgsql-hackers@postgresql.org" , "michael@paquier.xyz" References: <3128896.1624742969@sss.pgh.pa.us> <18eda75d-af6d-3fc0-03b6-607eff9f392a@enterprisedb.com> <622907.1625084114@sss.pgh.pa.us> <630837.1625092151@sss.pgh.pa.us> <67ddcb26f82acaffb26c59b7d8e4cd75399b2cd3.camel@vmware.com> From: Peter Eisentraut Message-ID: <9d35a4ac-2c75-cb44-95ab-61d69deb072e@enterprisedb.com> Date: Thu, 1 Jul 2021 20:05:59 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <67ddcb26f82acaffb26c59b7d8e4cd75399b2cd3.camel@vmware.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 01.07.21 00:41, Jacob Champion wrote: > On Wed, 2021-06-30 at 18:29 -0400, Tom Lane wrote: >> I wrote: >>> Peter Eisentraut writes: >>>> Could we set this rule up a little bit differently so that it is only >>>> run when the library is built. >>>> Right now, make world on a built tree makes 17 calls to this "nm" line, >>>> and make check-world calls it 81 times. I think once would be enough. ;-) >>> Hmm, didn't realize that would happen. Will see what can be done. >> >> Looks like we'd have to make use of a dummy stamp-file, more or less >> as attached. Any objections? > > Spitballing -- if you don't like the stamp file, you could add the > check to the end of the $(shlib) rule, surrounded by an ifeq check. > Then .DELETE_ON_ERROR should take care of the rest, I think. Somewhere in the $(shlib) rule would seem most appropriate. But I don't understand the rest: What ifeq, and why .DELETE_ON_ERROR?