Re: pg_restore error

Поиск
Список
Период
Сортировка
От Giles Lean
Тема Re: pg_restore error
Дата
Msg-id 12768.1031352611@nemeton.com.au
обсуждение исходный текст
Ответ на pg_restore error  ("Curtis Mortensen" <shakiro2@yahoo.com>)
Список pgsql-novice
Curtis Mortensen asked:

> When I try to move the dump to the new database
> (pg_restore [databasenam2] < backup.dump) it gives me this error:
>
> pg_restore: [archiver] could not open input file: No such file or directory

To specify the database name to restore to, you want the --dbname option:

$ pg_restore --dbname=databasenam2 < backup.dump

Regards,

Giles

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

Предыдущее
От: Giles Lean
Дата:
Сообщение: Re: Unix domain sockets
Следующее
От: Giles Lean
Дата:
Сообщение: Re: pg_restore error