| От | Janet S Jacobsen |
|---|---|
| Тема | Re: unable to restore from a pgdump file |
| Дата | |
| Msg-id | f25b8f677bb3.4b787320@lbl.gov обсуждение исходный текст |
| Ответ на | unable to restore from a pgdump file (Janet S Jacobsen <JSJacobsen@lbl.gov>) |
| Список | pgsql-general |
Thanks, Steve. You are exactly right. pg_restore was the right command to use! Janet On Feb 13, 2010, at 7:36 PM, Janet S Jacobsen wrote: > > Hi. I am trying to restore a database from a pgdump file, something > > that I've sucessfully done before. > > > > I created a new database cluster, created the database that I want > > to restore using > > > > create database subptf with template = template0; > > > > and then I tried to restore the database using > > > > ./psql subptf < subptf.pgdump > > > > The first part of what I get is > > > > ERROR: syntax error at or near "PGDMP" I'd guess that you created the dump in custom format, rather than sql format. If so, you'd need to use pg_restore to restore it rather than psql. Cheers, Steve
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера