Re: refreshing a database with pg_dump and psql
От | Jan Lentfer |
---|---|
Тема | Re: refreshing a database with pg_dump and psql |
Дата | |
Msg-id | 0DA2B66E-3916-4514-B4DD-7380622D930D@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
|
Список | pgsql-admin |
pg_restore -cC will do that, too.Check the pg_restore manual. There is a "clean" option when using the custom format. I think this is what you are looking for.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.
Or just inject a "DROP DATABASE ..." into the equation somewhere.
Jan
В списке pgsql-admin по дате отправления: