Re: COPY command character set - Mailing list pgsql-general

From Adrian Klaver
Subject Re: COPY command character set
Date
Msg-id 352574087.4306311252605968533.JavaMail.root@sz0030a.emeryville.ca.mail.comcast.net
Whole thread Raw
In response to Re: COPY command character set  ("Peter Headland" <pheadland@actuate.com>)
Responses Re: COPY command character set  ("Peter Headland" <pheadland@actuate.com>)
List pgsql-general
----- "Peter Headland" <pheadland@actuate.com> wrote:

> > The COPY command reference page saith
> >
> >    Input data is interpreted according to the current client
> encoding,
> >    and output data is encoded in the the current client encoding,
> even
> >    if the data does not pass through the client but is read from or
> >    written to a file.
>
> Rats - I read the manual page twice and that didn't register on my
> feeble consciousness. I suspect that I didn't look beyond the word
> "client", since I knew I wasn't interested in client behavior and I
> was
> speed-reading. On the assumption that I am not uniquely stupid, maybe
> we
> could re-phrase this slightly, with a "for example", and add a
> heading
> "Localization"?
>
> As a general comment, I18N/L10N is a hairy enough topic that it
> merits
> its own heading in any commands where it is an issue.
>
> 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?
>
> --
> Peter Headland
> Architect
> Actuate Corporation
>

>
> The COPY command reference page saith
>
>     Input data is interpreted according to the current client
> encoding,
>     and output data is encoded in the the current client encoding,
> even
>     if the data does not pass through the client but is read from or
>     written to a file.
>
> Seems clear enough to me.
>
>             regards, tom lane

Maybe the link might help?

http://www.postgresql.org/docs/8.4/interactive/multibyte.html


Adrian Klaver
aklaver@comcast.net

pgsql-general by date:

Previous
From: "Peter Headland"
Date:
Subject: Re: COPY command character set
Next
From: David Brain
Date:
Subject: Unable to drop a table due to seemingly non-existent dependencies