Re: refreshing a database with pg_dump and psql

Поиск
Список
Период
Сортировка
Искать
От
Jan Lentfer
Тема
Re: refreshing a database with pg_dump and psql
Дата
в 21:28:08
Msg-id
C923B445-0BFB-4113-8BF5-873244A97B75@web.de
Ответ на
Список
Дерево обсуждения
refreshing a database with pg_dump and psql "Rossi, Maria" <maria.rossi@us.pgds.com>
Re: refreshing a database with pg_dump and psql Jan Lentfer <Jan.Lentfer@web.de>
Re: refreshing a database with pg_dump and psql "David G. Johnston" <david.g.johnston@gmail.com>
Re: refreshing a database with pg_dump and psql Jan Lentfer <Jan.Lentfer@web.de>
Re: refreshing a database with pg_dump and psql "Rossi, Maria" <maria.rossi@us.pgds.com>
Re: refreshing a database with pg_dump and psql "David G. Johnston" <david.g.johnston@gmail.com>
Re: refreshing a database with pg_dump and psql Wei Shan <weishan.ang@gmail.com>
Re: refreshing a database with pg_dump and psql "Rossi, Maria" <maria.rossi@us.pgds.com>




Am 26.05.2015 um 23:09 schrieb Rossi, Maria <maria.rossi@us.pgds.com>:

Hi,

 

I have a database that was created from a ‘pg_dump –C’.  No problems there.  Then  I ran the pg_dump  again, this time without the –C. and tried to load it.   But   got a bunch of ‘object already exist’.   

Can’t I refresh an existing database from a plain pg_dump?  Is  there an option that I have to use?

Thanks.

 

Check the pg_restore manual. There is a "clean" option when using the custom format. I think this is what you are looking for.

Regards

Jan
В списке pgsql-admin по дате отправления
От: Rossi, Maria
Дата:
От: Rossi, Maria
Дата:
FAQ