COPY error when \. char - Mailing list pgsql-general

From Nicolas Paris
Subject COPY error when \. char
Date
Msg-id 20180320113204.n3rto7iyekqkzmz4@gmail.com
Whole thread Raw
Responses Re: COPY error when \. char  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
Hello

I get an error when loading this kind of csv:

> test.csv:
"hello ""world"" "
"\."
"this
works
"
"this
\.
does
not"

> table:
create table test (field text);

> sql:
\copy test (field) from 'test.csv' CSV  quote '"' ESCAPE '"';
ERROR:  unterminated CSV quoted field
CONTEXTE : COPY test, line 7: ""this
"

Apparently, having the \.  string in a single line make it break.
Is this normal ?

Thanks


pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: You might be able to move the set-returning function into aLATERAL FROM item.
Next
From: HORDER Phil
Date:
Subject: Foreign Key locking / deadlock issue.