pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <shammat@gmx.net>
To: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Is this a bug in pg_current_logfile() on Windows?
Date: Wed, 8 Jul 2020 19:07:20 +0200
Message-ID: <bb8f2c7f-2bee-35bd-d57e-62864e95bb89@gmx.net> (raw)
In-Reply-To: <1716646.1594226496@sss.pgh.pa.us>
References: <412ae8da-76bb-640f-039a-f3513499e53d@gmx.net>
	<1716646.1594226496@sss.pgh.pa.us>

Tom Lane schrieb am 08.07.2020 um 18:41:
> Somehow, the reading file is being left in binary mode and thus it's
> failing to convert \r\n back to plain \n.
>
> Now the weird thing about that is I'd have expected "r" and "w" modes
> to imply Windows text mode already, so that I'd have figured that
> _setmode call to be a useless no-op.  Apparently on some Windows libc
> implementations, it's not.  How was your installation built exactly?

That's the build from EnterpriseDB

https://www.enterprisedb.com/download-postgresql-binaries







view thread (18+ messages)  latest in thread

Message-ID: <bb8f2c7f-2bee-35bd-d57e-62864e95bb89@gmx.net>
Permalink:  ../bb8f2c7f-2bee-35bd-d57e-62864e95bb89@gmx.net/
Also on:    postgresql.org/message-id/bb8f2c7f-2bee-35bd-d57e-62864e95bb89@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: shammat@gmx.net
  Subject: Re: Is this a bug in pg_current_logfile() on Windows?
  In-Reply-To: <bb8f2c7f-2bee-35bd-d57e-62864e95bb89@gmx.net>
  References: <412ae8da-76bb-640f-039a-f3513499e53d@gmx.net> <1716646.1594226496@sss.pgh.pa.us> <bb8f2c7f-2bee-35bd-d57e-62864e95bb89@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox