X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 867743A3CDD for ; Tue, 9 Nov 2004 17:33:17 +0000 (GMT) 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 03157-02 for ; Tue, 9 Nov 2004 17:33:07 +0000 (GMT) Received: from mail.logi-track.com (burro.logi-track.com [213.239.193.212]) by svr1.postgresql.org (Postfix) with ESMTP id DB8D83A3C50 for ; Tue, 9 Nov 2004 17:33:07 +0000 (GMT) Received: from kingfisher.intern.logi-track.com (J0722.j.pppool.de [85.74.7.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logi-track.com (Postfix) with ESMTP id F33B630381; Tue, 9 Nov 2004 18:33:08 +0100 (CET) Received: from kingfisher.intern.logi-track.com (localhost [127.0.0.1]) by kingfisher.intern.logi-track.com (Postfix) with SMTP id 061DAAB2E4; Tue, 9 Nov 2004 18:33:02 +0100 (CET) Date: Tue, 9 Nov 2004 18:33:02 +0100 From: Markus Schaber To: pgsql-jdbc@postgresql.org Subject: Re: 8.0.0beta4: "copy" and "client_encoding" Message-ID: <20041109183302.63a547d5@kingfisher.intern.logi-track.com> In-Reply-To: References: <41893BC8.6000201@opencloud.com> <418A01B2.70104@opencloud.com> <20041105160324.43afb9e1@kingfisher.intern.logi-track.com> Organization: logi-track ag, =?ISO-8859-15?Q?z=FCrich?= X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-pc-linux-gnu) X-Face: Nx5T&>Nj$VrVPv}sC3IL&)TqHHOKCz/|)R$i"*r@w0{*I6w; UNU_hdl1J4NI_m{IMztq=>cmM}1gCLbAF+9\#CGkG8}Y{x%SuQ>1#t:; Z(|\qdd[i]HStki~#w1$TPF}:0w-7"S\Ev|_a$K 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. = =20 > 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 --=20 markus schaber | dipl. informatiker logi-track ag | rennweg 14-16 | ch 8001 z=FCrich phone +41-43-888 62 52 | fax +41-43-888 62 53 mailto:schabios@logi-track.com | www.logi-track.com