On Tue, Oct 13, 2026 at 1:26 PM shihao zhong <[email protected]> wrote: > 0001 sends the query without the label when the label is not plain > ASCII and the locale encoding differs from client_encoding. In every > other case the label is sent as before, and -E always shows it.
I'm not sure how useful it is to translate query labels. Isn't it simpler and safer to leave them untranslated, ensuring that they contain only ASCII characters? The v1 approach of comparing the locale encoding with client_encoding doesn't seem sufficient to determine whether a translated label is safe to send. For example, with a Japanese UTF-8 locale and client_encoding=UTF8, the patch would still send a Japanese label to a LATIN1 database, where conversion to the database encoding would fail. Regards, -- Fujii Masao
