Re: Restoring a pg_dumped file...

Поиск
Список
Период
Сортировка
От Oliver Elphick
Тема Re: Restoring a pg_dumped file...
Дата
Msg-id 1039732857.11315.1.camel@linda.lfix.co.uk
обсуждение исходный текст
Ответ на Restoring a pg_dumped file...  (Timothy Grant <tjg@craigelachie.org>)
Ответы Re: Restoring a pg_dumped file...  (Timothy Grant <tjg@craigelachie.org>)
Список pgsql-general
On Thu, 2002-12-12 at 21:57, Timothy Grant wrote:
> I'm sure I'm doing something completely stupid, and it's really not too
> important as I don't have any data in this database yet, but I can't get
> a file dumped with pg_dump under 7.2.3 to restore with pg_restore in
> 7.3.
>
> (tjg@reepicheep%) pg_restore
> tjg.db_dump                                                        ~
> pg_restore: [archiver] input file does not appear to be a valid archive
>
> So, what silly thing am I not doing right?

I wonder how you created it?

If you said:  "pg_dump >dumpfile", you can't use pg_restore.  You should
use  "psql <dumpfile"

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "Be of good courage, and he shall strengthen your
      heart, all ye that hope in the LORD."
                                  Psalms 31:24


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

Предыдущее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: [PERFORM] CLUSTER command
Следующее
От: Timothy Grant
Дата:
Сообщение: Re: Restoring a pg_dumped file...