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 1g2I5i-0002NG-QZ for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Sep 2018 15:39:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g2I5h-0002cS-1O for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Sep 2018 15:39:05 +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 1g2I5g-0002cJ-NL for pgsql-hackers@lists.postgresql.org; Tue, 18 Sep 2018 15:39:04 +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 1g2I5e-0005Df-Bl for pgsql-hackers@lists.postgresql.org; Tue, 18 Sep 2018 15:39:03 +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 w8IFcvvm025362; Tue, 18 Sep 2018 11:38:57 -0400 From: Tom Lane To: Laurenz Albe cc: Michael Paquier , pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Allow concurrent-safe open() and fopen() in frontend code for Wi In-reply-to: <71bf47219037a5e3839748eb55e4fa175b58f523.camel@cybertec.at> References: <23543.1536938575@sss.pgh.pa.us> <20180914224939.GA1178@paquier.xyz> <20180917114113.GA31460@paquier.xyz> <17194.1537191697@sss.pgh.pa.us> <20180917140202.GF31460@paquier.xyz> <19655.1537195712@sss.pgh.pa.us> <3883.1537200836@sss.pgh.pa.us> <11148.1537227504@sss.pgh.pa.us> <20180918001143.GG31460@paquier.xyz> <20180918024227.GI31460@paquier.xyz> <23296.1537281909@sss.pgh.pa.us> <71bf47219037a5e3839748eb55e4fa175b58f523.camel@cybertec.at> Comments: In-reply-to Laurenz Albe message dated "Tue, 18 Sep 2018 17:28:53 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25360.1537285137.1@sss.pgh.pa.us> Date: Tue, 18 Sep 2018 11:38:57 -0400 Message-ID: <25361.1537285137@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Laurenz Albe writes: > Would it be an option to have pgwin32_open default to text mode in > frontend code and to binary mode in backend code? Well, the question is why Michael's latest proposed patch doesn't accomplish that. regards, tom lane