COPY error when \. char

Поиск
Список
Период
Сортировка
От Nicolas Paris
Тема COPY error when \. char
Дата
Msg-id 20180320113204.n3rto7iyekqkzmz4@gmail.com
обсуждение исходный текст
Ответы Re: COPY error when \. char
Список 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 по дате отправления: