Re: COPY command character set

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Peter Headland" <pheadland(at)actuate(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: COPY command character set
Date: 2009-09-10 18:12:55
Message-ID: 5684.1252606375@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Peter Headland" <pheadland(at)actuate(dot)com> writes:
> How about my suggestion to add a means (extend COPY syntax) to specify
> encoding explicitly and handle UTF lead bytes - would that be of
> interest?

There are no lead bytes in UTF-8, and we make no pretense of handling
UTF-16, so I don't think we'd be interested in some hack that cleans
up misencoding problems.

The idea of overriding client_encoding has been suggested before. I
don't remember if it was rejected or is just languishing on the TODO
list. I'd be a little worried about sending clients data in an encoding
they aren't expecting, but if it only works for I/O to a file it might
be okay.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Bailey 2009-09-10 18:28:13 Getting the oid of an anyelement
Previous Message Adrian Klaver 2009-09-10 18:06:08 Re: COPY command character set