Re: encoding of PostgreSQL messages - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: encoding of PostgreSQL messages
Date
Msg-id 20081223214517.GF6217@alvh.no-ip.org
Whole thread Raw
In response to encoding of PostgreSQL messages  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Responses Re: encoding of PostgreSQL messages
List pgsql-general
Karsten Hilbert wrote:
> Hi all !
>
> How can I programmatically detect which encoding a
> PostgreSQL server I am trying to connect to sends back
> messages -- before I connect (so client_encoding and
> the pg_settings table are flat out).

Hmm, isn't client_encoding reported in the startup packet sent by the
server, after auth?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: encoding of PostgreSQL messages
Next
From: Karsten Hilbert
Date:
Subject: Re: encoding of PostgreSQL messages