have pg_restore create a new database?

Поиск
Список
Период
Сортировка
От Thomas H.
Тема have pg_restore create a new database?
Дата
Msg-id 08ec01c7115d$5fb8dd50$0201a8c0@iwing
обсуждение исходный текст
Ответы Re: have pg_restore create a new database?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
i'm trying to have pg_restore create a new db and load the data.
 
unfortunately, pg_restore always uses the database name specified in the dump. "--create" and "--dbname=newdb" does not seem to have any effect (pg_restore yells about database being non-existant).
 
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.
 
regards,
thomas 

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

Предыдущее
От: Ragnar
Дата:
Сообщение: Re: PGDATA
Следующее
От: Tom Lane
Дата:
Сообщение: Re: have pg_restore create a new database?