Re: pg_dump/pg_restore

Поиск
Список
Период
Сортировка
От Sai Hertz And Control Systems
Тема Re: pg_dump/pg_restore
Дата
Msg-id 4002C884.3080000@sancharnet.in
обсуждение исходный текст
Ответ на pg_dump/pg_restore  (Alexey Bobkov <bax@sunet.ru>)
Ответы Re: pg_dump/pg_restore  (John Siracusa <siracusa@mindspring.com>)
Список pgsql-admin
Dear Alexey Bobkov ,

>
> Then a try to restore my data:
> pg_restore /path_to_database/backup/db_backup.file
> and get next error
> pg_restore: [archiver] input file does not appear to be a valid archive

Use psql instead with command
psql -U username databasename -f  yourdb_file.sql
Yes you will have to edit the file a bit.
Drawbacks are :
triggers will go of on all insert and will be stumbling block in case to
dump you may use the following command in future

pg_dump --disable-triggers -U <user_name>  -a -d -b -D -Fc -Z 9  -f
<filername.tar.gz>  <dbname>
and to restore use
pg_restore --disable-triggers -U <user_name> -d <dbname>
<backupfilename.tar.gz>

Regards,
Vishal Kashyap

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Cluster in users home
Следующее
От: John Siracusa
Дата:
Сообщение: Re: pg_dump/pg_restore