Re: Add ENCODING option to COPY - Mailing list pgsql-hackers

From Hitoshi Harada
Subject Re: Add ENCODING option to COPY
Date
Msg-id AANLkTim_9rZndfqneZuuaSVUq-Vge6z8MfYzQ9EaEky7@mail.gmail.com
Whole thread Raw
In response to Re: Add ENCODING option to COPY  (Hitoshi Harada <umi.tanuki@gmail.com>)
Responses Re: Add ENCODING option to COPY  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
2011/1/31 Hitoshi Harada <umi.tanuki@gmail.com>:
> 2011/1/31 Robert Haas <robertmhaas@gmail.com>:
>> On Tue, Jan 25, 2011 at 10:24 AM, Hitoshi Harada <umi.tanuki@gmail.com> wrote:
>>> I'll check the code more if we have better alternatives.
>>
>> Where are we with this?
>
> I'll post another version today.

Here's the patch.

Finally I concluded the concern Itagaki-san raised can be solved by
adding code that restores client_encoding in copy_in_error_callback. I
tested some encoding mismatch cases with this patch and saw
appropriate messages in NLS environment.

Regards,


--
Hitoshi Harada

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Snapshots no longer build
Next
From: Greg Stark
Date:
Subject: Re: FPI