Re: refreshing a database with pg_dump and psql - Mailing list pgsql-admin

From David G. Johnston
Subject Re: refreshing a database with pg_dump and psql
Date
Msg-id CAKFQuwY19cdpsVGzosr6jT3aZfSRiB8i9uFQ2tf6aMBmmrQQcQ@mail.gmail.com
Whole thread Raw
In response to refreshing a database with pg_dump and psql  ("Rossi, Maria" <maria.rossi@us.pgds.com>)
Responses Re: refreshing a database with pg_dump and psql  (Wei Shan <weishan.ang@gmail.com>)
List pgsql-admin
On Tuesday, May 26, 2015, Rossi, Maria <maria.rossi@us.pgds.com> wrote:

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?

You should probably expound on what you mean by "refresh".

David J.

pgsql-admin by date:

Previous
From: Jan Lentfer
Date:
Subject: Re: refreshing a database with pg_dump and psql
Next
From: Wei Shan
Date:
Subject: Re: refreshing a database with pg_dump and psql