pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Barry Lind <blind@xythos.com>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: Markus Schaber <schabios@logi-track.com>
Cc: pgsql-jdbc@postgresql.org
Cc: mbch67@yahoo.com
Cc: pgsql-hackers@postgresql.org
Subject: Re: [JDBC] 8.0.0beta4: "copy" and "client_encoding"
Date: Mon, 8 Nov 2004 19:28:40 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0411081919080.16232@leary.csoft.net> (raw)
In-Reply-To: <03E7D3E231BB7B4A915A6581D4296CC6C083E1@NSNOVPS00411.nacio.xythos.com>
References: <03E7D3E231BB7B4A915A6581D4296CC6C083E1@NSNOVPS00411.nacio.xythos.com>


Well, lets ask -hackers...

When COPYing data from a file, the file encoding is taken from the 
client_encoding parameter.  The JDBC driver always uses UNICODE as the 
client_encoding and wants to prevent people from changing it by 
monitoring ParameterStatus messages and erroring out if it's changed.  
This presents a problem when you want to COPY to or from a file with a 
different encoding.  It seems reasonable to add an ENCODING specification 
to the COPY command instead of relying on the somewhat unrelated 
client_encoding setting.  Oliver Jowett also noted that copying from a 
file with LATIN1 data into a table whose name contained UNICODE characters 
could not be done.  Does this seem like a reasonable thing to do?

Kris Jurka

On Mon, 8 Nov 2004, Barry Lind wrote:

> I am assuming this will get addressed in the backend in 8.1 and that
> would be the upgrade path.  (I agree if there isn't agreement on the
> server side that this is appropriate for the server, then this wouldn't
> be the correct parameter).
> 
> --Barry
> 



view thread (17+ messages)  latest in thread

Message-ID: <Pine.BSO.4.56.0411081919080.16232@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0411081919080.16232@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0411081919080.16232@leary.csoft.net

 · 

reply

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: books@ejurka.com, blind@xythos.com, oliver@opencloud.com, schabios@logi-track.com, mbch67@yahoo.com, pgsql-hackers@postgresql.org
  Subject: Re: [JDBC] 8.0.0beta4: "copy" and "client_encoding"
  In-Reply-To: <Pine.BSO.4.56.0411081919080.16232@leary.csoft.net>
  References: <03E7D3E231BB7B4A915A6581D4296CC6C083E1@NSNOVPS00411.nacio.xythos.com> <Pine.BSO.4.56.0411081919080.16232@leary.csoft.net>

* 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