Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1frG4U-00018V-CI for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Aug 2018 05:16:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1frG4P-0001iR-GB for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Aug 2018 05:16:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1frG4P-0001iK-66 for pgsql-hackers@lists.postgresql.org; Sun, 19 Aug 2018 05:16:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1frG4I-0000DM-Bl for pgsql-hackers@lists.postgresql.org; Sun, 19 Aug 2018 05:16:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w7J5Fw8q025780; Sun, 19 Aug 2018 01:15:58 -0400 From: Tom Lane To: Nico Williams cc: Thomas Munro , Alvaro Herrera , PostgreSQL Hackers Subject: Re: Allowing printf("%m") only where it actually works In-reply-to: <20180819045050.GB16780@localhost> References: <20180528150125.j2x3mp62ssbeg3h5@alvherre.pgsql> <2685.1527520461@sss.pgh.pa.us> <8770.1533931511@sss.pgh.pa.us> <16896.1533935042@sss.pgh.pa.us> <14925.1534040609@sss.pgh.pa.us> <1437.1534100930@sss.pgh.pa.us> <13183.1534624490@sss.pgh.pa.us> <20180819045050.GB16780@localhost> Comments: In-reply-to Nico Williams message dated "Sat, 18 Aug 2018 23:50:50 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25778.1534655758.1@sss.pgh.pa.us> Date: Sun, 19 Aug 2018 01:15:58 -0400 Message-ID: <25779.1534655758@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Nico Williams writes: > On Sat, Aug 18, 2018 at 04:34:50PM -0400, Tom Lane wrote: >> So now I'm about ready to propose that we just *always* use >> snprintf.c, and forget all of the related configure probing. > You'd also get to ensure that all uses from *die() are > async-signal-safe. [ raised eyebrow... ] That seems like more than I care to promise here. But even if snprintf itself were unconditionally safe, there's plenty of other stuff in that code path that isn't. regards, tom lane