| От | Tom Lane |
|---|---|
| Тема | Re: \copy command |
| Дата | |
| Msg-id | 29848.1053119497@sss.pgh.pa.us обсуждение |
| Ответ на | \copy command (dario billo <dario.billo@inwind.it>) |
| Список | pgsql-novice |
dario billo <dario.billo@inwind.it> writes:
> \.
> ": can't parse "ne 1, pg_atoi: error in "
> lost synchronization with server, resetting connection
Given the funny formatting of the error message, I'd bet you have a
newline problem. COPY does not like anything but Unix-style newlines
(\n only); feeding it Windows-style newlines (\r\n) will lead to
failures like the above.
> why "resetting connection"?
Because there is no other way to recover from a COPY error in the
current FE/BE protocol. (7.4 will improve that situation, but it
will require client-side rewrites to take advantage of the new
protocol...)
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера