| От | Michael Fuhr |
|---|---|
| Тема | Re: Restore postgres database problem |
| Дата | |
| Msg-id | 20050128054818.GA95253@winnie.fuhr.org обсуждение исходный текст |
| Ответ на | Restore postgres database problem (Inpreet Singh <Singh.Inpreet@netsity.com>) |
| Список | pgsql-admin |
On Fri, Jan 28, 2005 at 11:00:44AM +0530, Inpreet Singh wrote: > Yes it returning carriage returns. I am pasting below the output to the > command u send to me > > *******Linux Prompt********************** > [root@localhost inpreet]# head postgres.sql | cat -v > --^M > -- PostgreSQL database cluster dump^M > --^M You could strip the carriage returns with tr, sed, perl, dos2unix, etc. Here's an example: tr -d '\r' < postgres.sql > fixed.sql # or pipe into psql What kind of system did you create the dump on? How did you transfer the file? If you can figure out how the carriage returns got there then you might be able to prevent it from happening in the future. -- Michael Fuhr http://www.fuhr.org/~mfuhr/
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера