X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DA2C8D1B366 for ; Wed, 4 Aug 2004 03:37:14 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 31930-01 for ; Wed, 4 Aug 2004 06:37:17 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id F1CA3D1B347 for ; Wed, 4 Aug 2004 03:37:08 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BsFOe-0005kt-00; Wed, 04 Aug 2004 18:37:08 +1200 Message-ID: <41108411.1030508@opencloud.com> Date: Wed, 04 Aug 2004 18:37:05 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: Hackers Subject: Re: [JDBC] Very strange Error in Updates References: <40F6172D.10301@sistemat.com.ar> <40F619A0.8030506@opencloud.com> <40F61CC2.5030704@sistemat.com.ar> <40F61F0E.6020907@opencloud.com> <20559.1089900977@sss.pgh.pa.us> <40F71495.20402@opencloud.com> <8982.1089935960@sss.pgh.pa.us> In-Reply-To: <8982.1089935960@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200408/164 X-Sequence-Number: 57136 Tom Lane wrote: > Oliver Jowett writes: > >>What about refusing to change client_encoding to something other than >>SQL_ASCII on SQL_ASCII databases? > > > Not sure that would do anything very useful. People who aren't thinking > about this probably aren't thinking about setting client_encoding > properly, either. > > >>Or perhaps the JDBC driver could issue a warning whenever it notices the >>underlying encoding is SQL_ASCII (this means another round-trip on >>connection setup even when using V3 though). > > > Something like this seems reasonable. I'm not sure why we didn't make > server_encoding be GUC_REPORT so that it would be sent automatically > during connection startup ... we could change that in 7.5 if it would > help any ... Sorry about the slow response to this. One of these would certainly be useful. I'd prefer the first option since it catches the problem regardless of what client you're using and seems conceptually cleaner. At this late stage in the game, though, maybe the GUC_REPORT approach is the thing to do if it means it can go into 7.5/8.0. -O