Re: pg_restore error

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

> thanks for the advice.  i now have a different error. :(

I suspected you would, but without knowing the commands you were using
decided guessing would only be confusing!  Only the archive formats
from pg_dump are intended to be used with pg_restore.  The default
output can be restored by psql:

$ pg_dump fubar > fubar.sql
$ createdb fubar2
CREATE DATABASE
$ psql fubar2 < fubar.sql
You are now connected as new user giles.
CREATE
$

$ pg_dump --format=c fubar > fubar.dump
$ createdb fubar2
CREATE DATABASE
$ pg_restore --dbname=fubar2 < fubar.dump
pg_restore: [archiver] WARNING:
  Data restoration may fail because existing triggers cannot be disabled
  (no superuser user name specified).  This is only a problem when
  restoring into a database with already existing triggers.
$

Regards,

Giles


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

Предыдущее
От: Giles Lean
Дата:
Сообщение: Re: pg_restore error
Следующее
От: Joel Rodrigues
Дата:
Сообщение: Unable to locate type name '? in catalog ERROR