On Tue, Jan 7, 2014 at 8:56 AM, MauMau <maumau307(at)gmail(dot)com> wrote:
> I suppose we know (or at least believe) those encodings during backend
> startup:
>
> * client encoding - the client_encoding parameter passed in the startup
> packet, or if that's not present, client_encoding GUC value.
>
> * server encoding - the encoding of strings gettext() returns. That is what
> GetPlatformEncoding() returns.
Suppose the startup packet itself is malformed. How will you report the error?
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company