From: Markus Schaber <schabios@logi-track.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: 8.0.0beta4: "copy" and "client_encoding"
Date: Tue, 9 Nov 2004 18:33:02 +0100
Message-ID: <20041109183302.63a547d5@kingfisher.intern.logi-track.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0411051519360.28172@leary.csoft.net>
References: <fe065ce.0411030803.4616e8c4@posting.google.com>
<41893BC8.6000201@opencloud.com>
<fe065ce.0411032308.5b7a24b3@posting.google.com>
<418A01B2.70104@opencloud.com>
<20041105160324.43afb9e1@kingfisher.intern.logi-track.com>
<Pine.BSO.4.56.0411051519360.28172@leary.csoft.net>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: schabios@logi-track.com
Subject: Re: 8.0.0beta4: "copy" and "client_encoding"
In-Reply-To: <20041109183302.63a547d5@kingfisher.intern.logi-track.com>
References: <fe065ce.0411030803.4616e8c4@posting.google.com> <41893BC8.6000201@opencloud.com> <fe065ce.0411032308.5b7a24b3@posting.google.com> <418A01B2.70104@opencloud.com> <20041105160324.43afb9e1@kingfisher.intern.logi-track.com> <Pine.BSO.4.56.0411051519360.28172@leary.csoft.net> <20041109183302.63a547d5@kingfisher.intern.logi-track.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox