Re: 8.0.0beta4: "copy" and "client_encoding" - Mailing list pgsql-jdbc

From Markus Schaber
Subject Re: 8.0.0beta4: "copy" and "client_encoding"
Date
Msg-id 20041109183302.63a547d5@kingfisher.intern.logi-track.com
Whole thread Raw
In response to Re: 8.0.0beta4: "copy" and "client_encoding"  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc
Hi, Kris,

On Fri, 5 Nov 2004 15:27:51 -0500 (EST)
Kris Jurka <books@ejurka.com> wrote:

> Well that's not going to get in for 8.0, so we'll need to do something
> especially since the driver is supposed to offer backward compatibility.
> From my perspective we've got three options, just drop the check, Oliver's
> add a URL parameter to turn off the check, or add an API so that they
> don't issue the COPY command directly, but something like
> issueServerCopy(table, file, encoding) where the driver could turn off the
> check, switch the encoding, do the copy, switch the encoding back, and
> turn on the check.

I would prefer to adding the URL option, maybe combined with the version
compatibility flag.

Adding an API always carries the disadvantage that the user has to do
runtime casts and add special cased code even when the sql syntax is
compatible for all capable servers.

Have fun,
Markus


--
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios@logi-track.com | www.logi-track.com

pgsql-jdbc by date:

Previous
From: Markus Schaber
Date:
Subject: Re: persistence of java objects
Next
From: Markus Schaber
Date:
Subject: Re: 8.0.0beta4: "copy" and "client_encoding"