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 1g5BS7-0004oC-9y for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Sep 2018 15:10:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g5BS4-000104-B0 for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Sep 2018 15:10:08 +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 1g5BS3-0000zx-W0 for pgsql-hackers@lists.postgresql.org; Wed, 26 Sep 2018 15:10:08 +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 1g5BS0-0003S9-V2 for pgsql-hackers@lists.postgresql.org; Wed, 26 Sep 2018 15:10:06 +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 w8QF9xiO003035; Wed, 26 Sep 2018 11:09:59 -0400 From: Tom Lane To: Michael Paquier cc: Alvaro Herrera , Thomas Munro , PostgreSQL Hackers Subject: Re: Allowing printf("%m") only where it actually works In-reply-to: <20180925224223.GB1659@paquier.xyz> References: <20180925154829.rbjxmmcpd5z7ueyq@alvherre.pgsql> <28378.1537891542@sss.pgh.pa.us> <20180925224223.GB1659@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Wed, 26 Sep 2018 07:42:23 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3033.1537974599.1@sss.pgh.pa.us> Date: Wed, 26 Sep 2018 11:09:59 -0400 Message-ID: <3034.1537974599@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Tue, Sep 25, 2018 at 12:05:42PM -0400, Tom Lane wrote: >> Alvaro Herrera writes: >>> Actually I think it *is* useful to do it like this, because then the >>> user knows to fix the netmsg.dll problem so that they can continue to >>> investigate the winsock problem. If we don't report the secondary error >>> message, how are users going to figure out how to fix the problem? >> OK, I'm fine with doing it like that if people want it. > +1. OK, pushed 0001 with that adjustment. While looking over the thread, I remembered I wanted to convert strerror_r into a wrapper as well. Think I'll go do that next, because really it'd be better for snprintf.c to be calling strerror_r not strerror. regards, tom lane