Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id F406B133740B for ; Mon, 18 Apr 2011 11:57:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 60940-08; Mon, 18 Apr 2011 14:57:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 2881B1337B49; Mon, 18 Apr 2011 11:57:09 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p3IEv7VN022093; Mon, 18 Apr 2011 10:57:08 -0400 (EDT) To: Bernd Helmle cc: Steve Singer , PostgreSQL-development Hackers , pgsql-jdbc@postgresql.org Subject: Re: JDBC connections to 9.1 In-reply-to: <4513A768D798800859BAA819@apophis.local> References: <4DAC3D55.1080606@ca.afilias.info> <20799.1303134278@sss.pgh.pa.us> <1D1444218CDB28801BEEB27D@apophis.local> <4513A768D798800859BAA819@apophis.local> Comments: In-reply-to Bernd Helmle message dated "Mon, 18 Apr 2011 16:34:04 +0200" Date: Mon, 18 Apr 2011 10:57:07 -0400 Message-ID: <22092.1303138627@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/883 X-Sequence-Number: 186085 Bernd Helmle writes: > If i am reading it correct, it reads "UTF8" from the backend, while > expecting "UNICODE" only. Not sure what change has caused this, > though. I am --- when I redid the GUC assign_hook logic a few weeks ago, I changed the client_encoding code so that it shows the normalized (official) name of the encoding, not whatever random string the client sent over. For instance, previous versions: regression=# set client_encoding = 'UnIcOdE'; SET regression=# show client_encoding ; client_encoding ----------------- UnIcOdE (1 row) versus HEAD: regression=# set client_encoding = 'UnIcOdE'; SET regression=# show client_encoding ; client_encoding ----------------- UTF8 (1 row) I wasn't aware that JDBC would fail on that. It's pretty annoying that it does, but maybe we should grin and bear it, ie revert the change to canonicalize the GUC's value? regards, tom lane