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 1jtYPr-0005tx-0g for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jul 2020 15:24:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jtYPp-00026S-S5 for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jul 2020 15:24:49 +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 1jtYPp-00026L-Kc for pgsql-hackers@lists.postgresql.org; Thu, 09 Jul 2020 15:24:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtYPn-0004Le-FM for pgsql-hackers@lists.postgresql.org; Thu, 09 Jul 2020 15:24:48 +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 069FOh741819940; Thu, 9 Jul 2020 11:24:43 -0400 From: Tom Lane To: Andrew Dunstan cc: Thomas Kellerer , pgsql-hackers@lists.postgresql.org Subject: Re: Is this a bug in pg_current_logfile() on Windows? In-reply-to: References: <412ae8da-76bb-640f-039a-f3513499e53d@gmx.net> <1716646.1594226496@sss.pgh.pa.us> <1733826.1594243608@sss.pgh.pa.us> <252f062c-2b75-1bc3-e08a-3541719b27c0@2ndQuadrant.com> <1739104.1594250997@sss.pgh.pa.us> <1777519.1594262442@sss.pgh.pa.us> <1818128.1594305850@sss.pgh.pa.us> <1819000.1594307053@sss.pgh.pa.us> Comments: In-reply-to Andrew Dunstan message dated "Thu, 09 Jul 2020 11:22:43 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1819938.1594308283.1@sss.pgh.pa.us> Date: Thu, 09 Jul 2020 11:24:43 -0400 Message-ID: <1819939.1594308283@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Dunstan writes: > On 7/9/20 11:04 AM, Tom Lane wrote: >> Therefore, we either should figure out how to get msys perl to do >> that conversion (and remove it from our code altogether), or make the >> conversions conditional on "is it msys perl?". I am not quite sure >> if the existing tests "if $Config{osname} eq 'msys'" are a legitimate >> implementation of that condition or not --- it seems like nominally >> they are checking the OS not the Perl, but maybe it's close enough. > If the reported OS is msys (it's a pseudo OS in effect) then the perl > must be msys' perl. Even when called from msys, native perl reports the > OS as MSWin32. So yes, close enough. Cool, I'll go try changing all those conditions to use the msys test. regards, tom lane