Re: have pg_restore create a new database?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: have pg_restore create a new database?
Дата
Msg-id 19169.1164560274@sss.pgh.pa.us
обсуждение исходный текст
Ответ на have pg_restore create a new database?  ("Thomas H." <me@alternize.com>)
Список pgsql-general
"Thomas H." <me@alternize.com> writes:
> what is the proper method to restore data from a previous named database =
> "olddb" into a fresh database named "newdb"? the old database still =
> exists and i don't want to overwrite the data.

Create newdb by hand and then specify it as the connection target for
pg_restore.  *Don't* use --create, as that tells pg_restore to create
and (re)connect to the database named in the dump.

            regards, tom lane

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

Предыдущее
От: "Thomas H."
Дата:
Сообщение: have pg_restore create a new database?
Следующее
От: "Thomas H."
Дата:
Сообщение: Re: have pg_restore create a new database?