pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: Antoine <plaskowski.stanislas@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Windows locale cause server to send invalid data encoding to client
Date: Wed, 14 Jul 2021 10:43:15 -0400
Message-ID: <3485156.1626273795@sss.pgh.pa.us> (raw)
In-Reply-To: <20210714143225.27evvwjlggn5m666@nol>
References: <CAO16vDNM5_eUZG3unbumx2AJt11VZxuQxn9cSZ9VhSCpD1TMgw@mail.gmail.com>
	<20210714135052.bg5ywhl7p23tnjmg@nol>
	<3484083.1626272399@sss.pgh.pa.us>
	<20210714143225.27evvwjlggn5m666@nol>

Julien Rouhaud <rjuju123@gmail.com> writes:
> On Wed, Jul 14, 2021 at 10:19:59AM -0400, Tom Lane wrote:
>> I wonder if we should decline
>> to translate any error messages until we've established the requested
>> client encoding.  Sending the message in English isn't ideal either,
>> but it'd avoid this hazard.

> I'm not sure which one is the worst.  One the bright side there aren't that
> many messages that can be sent until the client encoding can be set up for I'm
> +0.5 for this change.

Yeah, it's ugly either way.  I think though that the reason we don't hear
more complaints about this is that such messages are currently sent using
the language and encoding derived from the postmaster's environment.
In simple cases that'll be the same as the client's environment and
everything works.  So after thinking harder, I'm afraid that breaking that
scenario would make this idea a net loss.

			regards, tom lane





view thread (5+ messages)

Message-ID: <3485156.1626273795@sss.pgh.pa.us>
Permalink:  ../3485156.1626273795@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3485156.1626273795@sss.pgh.pa.us

 · 

reply

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rjuju123@gmail.com, plaskowski.stanislas@gmail.com
  Subject: Re: Windows locale cause server to send invalid data encoding to client
  In-Reply-To: <3485156.1626273795@sss.pgh.pa.us>
  References: <CAO16vDNM5_eUZG3unbumx2AJt11VZxuQxn9cSZ9VhSCpD1TMgw@mail.gmail.com> <20210714135052.bg5ywhl7p23tnjmg@nol> <3484083.1626272399@sss.pgh.pa.us> <20210714143225.27evvwjlggn5m666@nol> <3485156.1626273795@sss.pgh.pa.us>

* 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