Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id E2EF41337C0A for ; Mon, 18 Apr 2011 12:24:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 95579-06-3; Mon, 18 Apr 2011 15:24:23 +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 98AB41337C0E; Mon, 18 Apr 2011 12:24:07 -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 p3IFO4Y1022631; Mon, 18 Apr 2011 11:24:04 -0400 (EDT) To: Dave Cramer cc: Bernd Helmle , Steve Singer , PostgreSQL-development Hackers , pgsql-jdbc@postgresql.org Subject: Re: [JDBC] JDBC connections to 9.1 In-reply-to: References: <4DAC3D55.1080606@ca.afilias.info> <20799.1303134278@sss.pgh.pa.us> <1D1444218CDB28801BEEB27D@apophis.local> <4513A768D798800859BAA819@apophis.local> <22092.1303138627@sss.pgh.pa.us> Comments: In-reply-to Dave Cramer message dated "Mon, 18 Apr 2011 11:11:26 -0400" Date: Mon, 18 Apr 2011 11:24:04 -0400 Message-ID: <22630.1303140244@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/890 X-Sequence-Number: 186092 Dave Cramer writes: > On Mon, Apr 18, 2011 at 10:57 AM, Tom Lane wrote: >> 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? > Older drivers will fail for sure. We can fix newer drivers, but if we > leave it we will see a slew of bug reports. Yeah. I'm thinking what we should do here is revert the change, with a note in the source about why, and also change the JDBC driver to send and expect "UTF8" not "UNICODE" (which as Kevin says is more correct anyway). Then in a few releases' time we can un-revert the server change. regards, tom lane