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 5DF4D3A3E5A for ; Fri, 5 Nov 2004 20:27:49 +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 48227-10 for ; Fri, 5 Nov 2004 20:27:41 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id EF6B43A3E76 for ; Fri, 5 Nov 2004 20:27:41 +0000 (GMT) Received: (qmail 20732 invoked by uid 1112); 5 Nov 2004 20:27:51 -0000 Date: Fri, 5 Nov 2004 15:27:51 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Markus Schaber Cc: Oliver Jowett , pgsql-jdbc@postgresql.org, mbch67@yahoo.com Subject: Re: 8.0.0beta4: "copy" and "client_encoding" In-Reply-To: <20041105160324.43afb9e1@kingfisher.intern.logi-track.com> Message-ID: References: <41893BC8.6000201@opencloud.com> <418A01B2.70104@opencloud.com> <20041105160324.43afb9e1@kingfisher.intern.logi-track.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/65 X-Sequence-Number: 11487 On Fri, 5 Nov 2004, Markus Schaber wrote: > I think you're right. Except COPY from STDIN, client encoding should be > independent from COPY encoding. So I suggest that Adrian requests > backend support for this. > 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 think the third option is too much work at the moment, when we do offer a copy API in the driver we could fold that in, but not now. As to the first two options, I don't really care. Either is fine with me, so since Oliver seems to like a URL parameter, that's what we'll probably go with. Kris Jurka