Re: BUG #19581: Non-UTF8-encoded text in log file

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: redoute(at)tortenboxer(dot)de
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19581: Non-UTF8-encoded text in log file
Date: 2026-07-27 12:32:34
Message-ID: 3803795.1785155554@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> Internal log messages (e.g. checkpoint messages) are written with CP1252
> bytes (0xFC for ü) instead of UTF-8.

I see no reason to think this is a bug. It's documented that sessions
write to the log in whatever their prevailing encoding is. I think
the checkpointer isn't attached to any particular database, so instead
of adopting some database's encoding it would use whatever is implied
by the postmaster's locale environment (LANG, LC_ALL, LC_CTYPE, or
related environment variables). So would the postmaster itself, for
that matter.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Ayush Tiwari 2026-07-27 12:38:31 Re: BUG #19579: Wrong results regression
Previous Message Álvaro Herrera 2026-07-27 11:13:30 Re: BUG #19580: Can not FINALIZE detach partition. Table in stuck