Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 697479FB2F5 for ; Tue, 1 May 2007 13:34:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 78009-03 for ; Tue, 1 May 2007 13:34:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id BC5E99FAC9B for ; Tue, 1 May 2007 13:34:27 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l41GYPv5018203; Tue, 1 May 2007 12:34:25 -0400 (EDT) To: Kris Jurka cc: Altaf Malik , pgsql-jdbc@postgresql.org Subject: Re: JDBC Default Encoding In-reply-to: References: <380653.13890.qm@web39107.mail.mud.yahoo.com> Comments: In-reply-to Kris Jurka message dated "Tue, 01 May 2007 12:05:08 -0400" Date: Tue, 01 May 2007 12:34:25 -0400 Message-ID: <18202.1178037265@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/7 X-Sequence-Number: 16997 Kris Jurka 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