From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Thomas Kellerer <shammat@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Is this a bug in pg_current_logfile() on Windows?
Date: Wed, 8 Jul 2020 06:45:12 -0700
Message-ID: <4c926ea1-f0f9-b0fa-cbb7-fe67ce18dbeb@aklaver.com> (raw)
In-Reply-To: <412ae8da-76bb-640f-039a-f3513499e53d@gmx.net>
References: <412ae8da-76bb-640f-039a-f3513499e53d@gmx.net>
On 7/8/20 6:05 AM, Thomas Kellerer wrote:
> Hello,
>
> I noticed the following strage output when running Postgres 12.3 (not psql) on Windows
>
> postgres=# select pg_current_logfile();
> pg_current_logfile
> ------------------------------------
> pg_log/postgresql-2020-07-08.log\r
> (1 row)
>
> Note the "\r" at the end of the file name.
>
> This does not happen when running Postgres on Linux.
>
> Is this intended for some strange reason?
> Or a bug or a technical limitation?
I'm guessing the difference between Unix line ending:
\n
and Windows:
\r\n
>
> Regards
> Thomas
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, shammat@gmx.net
Subject: Re: Is this a bug in pg_current_logfile() on Windows?
In-Reply-To: <4c926ea1-f0f9-b0fa-cbb7-fe67ce18dbeb@aklaver.com>
References: <412ae8da-76bb-640f-039a-f3513499e53d@gmx.net> <4c926ea1-f0f9-b0fa-cbb7-fe67ce18dbeb@aklaver.com>
* 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