ogromm <alex.schiller1990@xxxxxx> writes: > 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" Yeah, psql's \copy command doesn't know anything about CSV mode, and will take \. as an EOF marker even though it shouldn't. If you need to copy data like this I'd suggest using a backend-side COPY. regards, tom lane