Re: encoding of PostgreSQL messages

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: encoding of PostgreSQL messages
Date: 2008-12-23 21:45:17
Message-ID: 20081223214517.GF6217@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2008-12-23 22:17:42 Re: encoding of PostgreSQL messages
Previous Message Karsten Hilbert 2008-12-23 21:24:14 encoding of PostgreSQL messages