Re: Is this a bug in pg_current_logfile() on Windows?

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Is this a bug in pg_current_logfile() on Windows?
Дата
Msg-id 4c926ea1-f0f9-b0fa-cbb7-fe67ce18dbeb@aklaver.com
обсуждение исходный текст
Ответ на Is this a bug in pg_current_logfile() on Windows?  (Thomas Kellerer <shammat@gmx.net>)
Ответы Re: Is this a bug in pg_current_logfile() on Windows?  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
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



В списке pgsql-general по дате отправления:

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Is this a bug in pg_current_logfile() on Windows?
Следующее
От: "Yorwerth, Adam"
Дата:
Сообщение: BigSerial and txid issuance