Re: BUG #6007: pg_restore -C -d does not behave as expected when dump is done with pg_dump

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #6007: pg_restore -C -d does not behave as expected when dump is done with pg_dump
Дата
Msg-id 3223.1304606076@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #6007: pg_restore -C -d does not behave as expected when dump is done with pg_dump  ("gab" <korsani@free.fr>)
Список pgsql-bugs
"gab" <korsani@free.fr> writes:
> Try to restore it using :
> pg_restore -C -d test /tmp/plop
> pg_restore: [archiver (db)] connection to database "test" failed: FATAL:
> database "test" does not exist

> But the doc says that -C use the parameter of -d to CREATE the database ...

Well, if the docs say that they shouldn't.  When you use -C, the
database named by -d is just the one where pg_restore initially connects
to issue the CREATE DATABASE command.  Please specify where you think
the documentation is telling you something else.

            regards, tom lane

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

Предыдущее
От: "gab"
Дата:
Сообщение: BUG #6007: pg_restore -C -d does not behave as expected when dump is done with pg_dump
Следующее
От: Tom Lane
Дата:
Сообщение: Re: psql command line client behaviour