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 1g5IzL-0001uG-NX for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Sep 2018 23:12:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g5IzJ-0001MD-HK for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Sep 2018 23:12:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5IzJ-0001M6-A4 for pgsql-hackers@lists.postgresql.org; Wed, 26 Sep 2018 23:12:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5IzH-0007fv-6B for pgsql-hackers@lists.postgresql.org; Wed, 26 Sep 2018 23:12:56 +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 w8QNCofc013116; Wed, 26 Sep 2018 19:12:50 -0400 From: Tom Lane To: Andres Freund cc: Michael Paquier , Thomas Munro , Alvaro Herrera , PostgreSQL Hackers Subject: Re: Allowing printf("%m") only where it actually works In-reply-to: <20180926224547.wxdwopzx4tuoslh4@alap3.anarazel.de> References: <13183.1534624490@sss.pgh.pa.us> <30022.1534705920@sss.pgh.pa.us> <20180912070739.GK25160@paquier.xyz> <1304.1536774001@sss.pgh.pa.us> <20180914020256.GD29332@paquier.xyz> <13585.1537809527@sss.pgh.pa.us> <20180926174645.nsyj77lx2mvtz4kx@alap3.anarazel.de> <25501.1537998096@sss.pgh.pa.us> <20180926214952.ol6b6kawc6u3tvu5@alap3.anarazel.de> <5742.1538001067@sss.pgh.pa.us> <20180926224547.wxdwopzx4tuoslh4@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 26 Sep 2018 15:45:47 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13114.1538003570.1@sss.pgh.pa.us> Date: Wed, 26 Sep 2018 19:12:50 -0400 Message-ID: <13115.1538003570@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > Oh, come on. One can be disabled with a GUC, has (although not good > enough) intelligence when it switches on, the other has ... none of > that. Obviously performance is always a balancing act, but you'd be > pretty pissed at anybody else regressing performance in a non-fringe > case, and then refused responsibility. And as I said, I'm willing to > help. Well, fine, let's work on it. Did you note Alexander's comparison to some "stb" library in the other thread? I wonder if we could borrow code or at least ideas from that. regards, tom lane