Re: [JDBC] Very strange Error in Updates

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [JDBC] Very strange Error in Updates
Date: 2004-08-04 06:37:05
Message-ID: 41108411.1030508@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-jdbc

Tom Lane wrote:
> Oliver Jowett <oliver(at)opencloud(dot)com> 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bernd Helmle 2004-08-04 09:21:59 Re: Updateable Views?
Previous Message markir 2004-08-04 04:46:02 Re: Preliminary PITR documentation available

Browse pgsql-jdbc by date

  From Date Subject
Next Message chinni 2004-08-04 14:20:09 postgres and Jdbc 2.0
Previous Message Mike Martin 2004-08-03 16:48:30 Re: Wrong column names in ResultSetMetaData