Skip site navigation (1) Skip section navigation (2)

Re: encoding of PostgreSQL messages

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: encoding of PostgreSQL messages
Date: 2008-12-23 22:17:42
Message-ID: 20081223221742.GF3894@merkur.hilbert.loc (view raw, whole thread or download thread mbox)
Lists: pgsql-general
On Tue, Dec 23, 2008 at 06:45:17PM -0300, Alvaro Herrera wrote:

> > 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?

That would not quite be enough -- I am talking about
messages reported *during* auth, say

	FATAL: password authentication failed for user "postgres"


	fe_sendauth: no password supplied

both of which, in other locales, may contain non-ASCII characters.

GPG key ID E4071346 @
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

In response to


pgsql-general by date

Next:From: Adrian KlaverDate: 2008-12-23 22:20:02
Subject: Re: need some help with pl-pgsql
Previous:From: Alvaro HerreraDate: 2008-12-23 21:45:17
Subject: Re: encoding of PostgreSQL messages

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group