Re: DB dump problems

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DB dump problems
Дата
Msg-id 583.1038455828@sss.pgh.pa.us
обсуждение исходный текст
Ответ на DB dump problems  ("Gallamine" <iam@gallamine.com>)
Список pgsql-novice
"Gallamine" <iam@gallamine.com> writes:
> You are now connected to database gorobotics2.
> CREATE
> ": can't parse "ne 1, pg_atoi: error in "0
> lost synchronization with server, resetting connection

> There isn't anything in my dump that says "ne 1, pg_atoi ..."

This looks a lot like a newline problem.  COPY only likes Unix-style
newlines (\n, a/k/a LF).  You've got DOS-style newlines (\r\n, a/k/a
CR/LF) or possibly Mac-style newlines (\r, a/k/a CR) in your data file.
This can be blamed on whatever method you used to transfer the dump
file from old machine to new.  Try again, and try transferring the dump
as binary data not text.

            regards, tom lane

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Warren Massengill"
Дата:
Сообщение: Re: Copy entire file as one field
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: Copy entire file as one field