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

Re: JDBC Default Encoding

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: Altaf Malik <mmalik_altaf(at)yahoo(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC Default Encoding
Date: 2007-05-01 16:34:25
Message-ID: 18202.1178037265@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-jdbc
Kris Jurka <books(at)ejurka(dot)com> writes:
> I'm not sure when the server applies 
> our setting of client_encoding.

Immediately after switch scanning in PostgresMain, assuming you're
sending it the way I think.  This is before the backend subprocess
attempts to verify the database or user name ... however, this is
after authentication (pg_hba.conf processing) so there's quite a
variety of failure messages that would be sent in the postmaster's
default encoding, whatever that might be.  I'm afraid there's not
any really clean answer there.

			regards, tom lane

In response to

pgsql-jdbc by date

Next:From: Badawy, MohamedDate: 2007-05-02 12:08:29
Subject: connection variables problem
Previous:From: Kris JurkaDate: 2007-05-01 16:05:08
Subject: Re: JDBC Default Encoding

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