Re: Function COPY - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Function COPY
Date
Msg-id 8188.975030740@sss.pgh.pa.us
Whole thread Raw
In response to Function COPY  ("DaviS Quirico" <davis@davisnet.it>)
List pgsql-bugs
"DaviS Quirico" <davis@davisnet.it> writes:
> CopyReadAttribute: end of record marker corrupted

This message comes out if the COPY data contains \. not immediately
followed by newline (\n).  I'm guessing that you have some backslashes
that need to be doubled --- backslash is an escape character for COPY.

Another possibility is that you actually did put a \. end-marker after
your data, but followed it with a DOS-style return (\r\n) or nothing at
all.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Comparison of Strings
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug in select with 'like' and index of two columns