Re: Usage: pg_dump's text format

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Usage: pg_dump's text format
Дата
Msg-id 21447.1081489145@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Usage: pg_dump's text format  ("JP Beaudry" <jbeaudry@cisco.com>)
Список pgsql-novice
"JP Beaudry" <jbeaudry@cisco.com> writes:
> In long, I use the following command to generate the dump file against a
> database named "mystore":
> "pg_dump --clean --create --file=db_dump.txt --format p mystore"
> ...
> To restore the database, I have tried:
> "psql mystore < db_dump.txt"
> And this fails at the "Drop Database "mystore"" command.

--clean and --create are logically incompatible options.  pg_dump
versions newer than about 7.1 will tell you so ... I think you are
overdue for an upgrade, but in the meantime don't use that combination.

            regards, tom lane

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

Предыдущее
От: "JP Beaudry"
Дата:
Сообщение: Usage: pg_dump's text format
Следующее
От: "Manfred Koroschetz"
Дата:
Сообщение: Re: Help for MSSQL "Compute" equivalent in Postgres