From: smiley2211 <smiley2211@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Dump & Load a database???
Date: Tue, 21 Aug 2007 07:50:01 -0700 (PDT)
Message-ID: <12256258.post@talk.nabble.com> (raw)
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.
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: smiley2211@yahoo.com
Subject: Re: Dump & Load a database???
In-Reply-To: <12256258.post@talk.nabble.com>
* 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