| От | Tom Lane |
|---|---|
| Тема | Re: Unable to user pg_restore |
| Дата | |
| Msg-id | 3437.1066668546@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Unable to user pg_restore ("Kumar" <sgnerd@yahoo.com.sg>) |
| Список | pgsql-sql |
"Kumar" <sgnerd@yahoo.com.sg> writes:
> $ pg_restore -d sampledbtest -f /home/db_repositorysampledb.sql.tar.gz -F c=
> -v -c -O -h 192.128.2.51 -p 5432 -u
> User name: postgres
This is the wrong way to invoke pg_restore. "-f file" is an *output*
file name. -d and -f are mutually contradictory options ... not sure
why the thing doesn't complain about that. What you want is just
pg_restore -d sampledbtest -v -c -O -h 192.128.2.51 -p 5432 -u inputfilename
Depending on whether -d or -f takes precedence, the program might have
tried to overwrite your dump file; better check.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера