Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 6621A9F9842 for ; Tue, 21 Aug 2007 11:50:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 59443-02 for ; Tue, 21 Aug 2007 11:49:57 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by postgresql.org (Postfix) with ESMTP id 975D89F992E for ; Tue, 21 Aug 2007 11:50:03 -0300 (ADT) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1INV3R-0002Sf-Ti for pgsql-admin@postgresql.org; Tue, 21 Aug 2007 07:50:01 -0700 Message-ID: <12256258.post@talk.nabble.com> Date: Tue, 21 Aug 2007 07:50:01 -0700 (PDT) From: smiley2211 To: pgsql-admin@postgresql.org Subject: Dump & Load a database??? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: smiley2211@yahoo.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.122 tagged_above=0 required=5 tests=AWL=-1.064, BAYES_20=-0.74, DNS_FROM_OPENWHOIS=1.13, FORGED_YAHOO_RCVD=2.297, WHOIS_MYPRIVREG=1.499 X-Spam-Level: *** X-Archive-Number: 200708/249 X-Sequence-Number: 26580 Hello all, I am new to POSTGRESQL and I am trying to dump and load a database...using the steps below I get DUP errors when trying to LOAD the file into an existing database... Do I have to DROP \ recreate and load the target database (this is what I currently do)? is there a way to just do an IN PLACE load like in other RDBMS environments??? pg_dump proddb | gzip > proddb_082107.sql.gz gunzip < proddb_082107.sql.gz | psql -d testdb -f - Thanks, Michelle. -- View this message in context: http://www.nabble.com/Dump---Load-a-database----tf4305692.html#a12256258 Sent from the PostgreSQL - admin mailing list archive at Nabble.com.