| От | Tom Lane |
|---|---|
| Тема | Re: BUG #4924: pg_restore hangs, does nothing |
| Дата | |
| Msg-id | 7446.1247700288@sss.pgh.pa.us обсуждение |
| Ответ на | BUG #4924: pg_restore hangs, does nothing ("Jim Michaels" <jmichae3@yahoo.com>) |
| Список | pgsql-bugs |
"Jim Michaels" <jmichae3@yahoo.com> writes:
> 2. pg_restore doesn't seem to do anything but hang when I try to restore.
> I did a pg_dumpall from 8.3.7:
> pg_dumpall --file=c:\pg-jmichae3-7-13-2009.sql --role=postgres
> --host=localhost --port=5432
> then I did a pg_restore to 8.4:
> pg_restore --file=c:\pg-jmichae3-7-13-2009.sql --role=postgres --verbose
> --host=localhost --port=5432
--file is the output argument for pg_restore, not the input argument.
It's trying to read the archive from stdin, so it's waiting for you
to type something.
In any case, pg_restore is the wrong tool for restoring pg_dumpall
output. You should just feed the script to psql.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера