\COPY from CSV ERROR: unterminated CSV quoted field - Mailing list pgsql-general

From ogromm
Subject \COPY from CSV ERROR: unterminated CSV quoted field
Date
Msg-id 1403082002427-5807700.post@n5.nabble.com
Whole thread Raw
Responses Re: \COPY from CSV ERROR: unterminated CSV quoted field
List pgsql-general
Hi,

I get the error "unterminated CSV quoted field" when I try to copy text with
"new line \. new line"


For example:

CREATE TABLE test (text TEXT);
\COPY test FROM 'test.csv' WITH DELIMITER ',' CSV HEADER;

test.csv:
Text
"some text
\.
more text"


Can any one please give me some clue how to get rid of this problem.

Thanks in advance.

ogromm



--
View this message in context:
http://postgresql.1045698.n5.nabble.com/COPY-from-CSV-ERROR-unterminated-CSV-quoted-field-tp5807700.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Best backup strategy for production systems
Next
From: "Vasudevan, Ramya"
Date:
Subject: Re: max_connections reached in postgres 9.3.3