pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Lentfer <Jan.Lentfer@web.de>
To: Rossi, Maria <maria.rossi@us.pgds.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: refreshing a database with pg_dump and  psql
Date: Tue, 26 May 2015 23:27:51 +0200
Message-ID: <C923B445-0BFB-4113-8BF5-873244A97B75@web.de> (raw)
In-Reply-To: <f39c1b101fe5410a93f57d2f5a0edefe@DC01PXMBP003.jacksonnational.com>
References: <f39c1b101fe5410a93f57d2f5a0edefe@DC01PXMBP003.jacksonnational.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>





> 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=

view thread (8+ messages)  latest in thread

Message-ID: <C923B445-0BFB-4113-8BF5-873244A97B75@web.de>
Permalink:  ../C923B445-0BFB-4113-8BF5-873244A97B75@web.de/
Also on:    postgresql.org/message-id/C923B445-0BFB-4113-8BF5-873244A97B75@web.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: Jan.Lentfer@web.de, maria.rossi@us.pgds.com
  Subject: Re: refreshing a database with pg_dump and  psql
  In-Reply-To: <C923B445-0BFB-4113-8BF5-873244A97B75@web.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox