Re: client_encoding directive is ignored in - Mailing list pgsql-hackers

From Tom Lane
Subject Re: client_encoding directive is ignored in
Date
Msg-id 5868.1045358534@sss.pgh.pa.us
Whole thread Raw
In response to Re: client_encoding directive is ignored in  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Responses Re: client_encoding directive is ignored in
List pgsql-hackers
Tatsuo Ishii <t-ishii@sra.co.jp> writes:
> Actually the problem can be divided into two parts:
> 1) backend does not process GUC client_encoding. 
> 2) libpq does not ask the backend's client_encoding, instead it asks
>    datanbase encoding when it starts up the connection. This is just a
>    mistake.

> I think we could fix 1) without any backward compatibilty problem and
> should be applied to both 7.3-STATBLE and current.

If we change the backend behavior without changing libpq, aren't we
breaking things even worse?  As long as libpq behaves as in (2), hadn't
the backend better init its idea of client_encoding to match
database_encoding?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: location of the configuration files
Next
From: Lamar Owen
Date:
Subject: Re: location of the configuration files