Re: pgsql 7.4.1 copy - end-of-copy marker corrupt

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jenny Zhang <jenny(at)osdl(dot)org>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pgsql 7.4.1 copy - end-of-copy marker corrupt
Date: 2004-02-06 06:52:10
Message-ID: 20040206065210.GC28648@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Feb 06, 2004 at 01:11:24AM -0500, Tom Lane wrote:
> Jenny Zhang <jenny(at)osdl(dot)org> writes:
> > ERROR: end-of-copy marker corrupt
> > CONTEXT: COPY author, line 49: "49\aoD{\BABABABABARENG
> > \t5p.\19840426"
>
> > and this is the line in the data file it complains:
> > ===
> > 49\aoD{\BABABABABARENG
> > \t5p.\19840426\.XfqWM+Ke,8+Ae-9PWPn)}#6eVa_Qu ...
> ^^
>
> It doesn't like the "\.", with good reason I should think. Are you sure
> 7.3 would take this file?
>
> Anyway, either double or remove that backslash, depending on what you
> want.

Umm, the copy is using the escape character as column seperator. I wonder if
we should catch and warn for that.

I don't think there is a sensible way that can actually work.

--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> (... have gone from d-i being barely usable even by its developers
> anywhere, to being about 20% done. Sweet. And the last 80% usually takes
> 20% of the time, too, right?) -- Anthony Towns, debian-devel-announce

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2004-02-06 08:48:16 Upcoming events: Chemnitzer Linux-Tag
Previous Message Tom Lane 2004-02-06 06:11:24 Re: pgsql 7.4.1 copy - end-of-copy marker corrupt