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 1lyj8i-0003w9-Ai for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Jun 2021 22:57:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lyj8h-0003Fd-8U for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Jun 2021 22:57:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lyj8h-0003FV-0R for pgsql-hackers@lists.postgresql.org; Wed, 30 Jun 2021 22:57:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lyj8e-00085s-O0 for pgsql-hackers@postgresql.org; Wed, 30 Jun 2021 22:57:02 +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 15UMuuE6632284; Wed, 30 Jun 2021 18:56:56 -0400 From: Tom Lane To: Jacob Champion cc: "peter.eisentraut@enterprisedb.com" , "daniel@yesql.se" , "pgsql-hackers@postgresql.org" , "michael@paquier.xyz" Subject: Re: Preventing abort() and exit() calls in libpq In-reply-to: <67ddcb26f82acaffb26c59b7d8e4cd75399b2cd3.camel@vmware.com> 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> Comments: In-reply-to Jacob Champion message dated "Wed, 30 Jun 2021 22:41:01 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <632282.1625093816.1@sss.pgh.pa.us> Date: Wed, 30 Jun 2021 18:56:56 -0400 Message-ID: <632283.1625093816@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jacob Champion writes: > On Wed, 2021-06-30 at 18:29 -0400, Tom Lane wrote: >> 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. Hmm ... I'd been thinking we don't use .DELETE_ON_ERROR, but on second look we do, so that could be a plausible approach. On balance though, the separate rule seems better, because .DELETE_ON_ERROR would destroy the evidence about why "nm" failed, which could be annoying when investigating problems. regards, tom lane