Is this a bug in pg_current_logfile() on Windows? - Mailing list pgsql-general

From Thomas Kellerer
Subject Is this a bug in pg_current_logfile() on Windows?
Date
Msg-id 412ae8da-76bb-640f-039a-f3513499e53d@gmx.net
Whole thread Raw
Responses Re: Is this a bug in pg_current_logfile() on Windows?
Re: Is this a bug in pg_current_logfile() on Windows?
List pgsql-general
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?

Regards
Thomas



pgsql-general by date:

Previous
From: Michael Lewis
Date:
Subject: Re: Is postgres able to share sorts required by common partition window functions?
Next
From: Adrian Klaver
Date:
Subject: Re: Is this a bug in pg_current_logfile() on Windows?