Re: COPY FROM is not 8bit clean

From: Darcy Buskermolen <darcy(at)ok-connect(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: COPY FROM is not 8bit clean
Date: 2002-02-26 16:23:22
Message-ID: 3.0.32.20020226082322.02cc2c30@mail.ok-connect.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Postgres was not compiled with Multibyte, if I replace the if (delimc == c)
with if (strstr(delim,c)) it works as expected. This changes was
implemented for performance reasons according to the CVS log.

At 11:57 PM 2/25/02 -0500, Tom Lane wrote:
>Darcy Buskermolen <darcy(at)ok-connect(dot)com> writes:
>> When useing COPY FROM 'file' DELIMITER '\254' copyfrom reads past the
>> delimiter and ends up with parse errors when trying to do the insert
>
>Are you perhaps operating in a multibyte encoding in which \254 is
>just the first byte of a multibyte character?
>
>I'm not sure what we do in such a case, and even less sure what we
>should do ... but I am entirely prepared to believe that we don't
>do the Right Thing ...
>
> regards, tom lane
>
>

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Darcy Buskermolen 2002-02-26 16:30:01 Re: COPY FROM is not 8bit clean
Previous Message Josh Burdick 2002-02-26 16:21:52 Re: JDBC/JSP: Strange Problem