Skip site navigation (1) Skip section navigation (2)

Dump & Load a database???

From: smiley2211 <smiley2211(at)yahoo(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Dump & Load a database???
Date: 2007-08-21 14:50:01
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
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 -


View this message in context:
Sent from the PostgreSQL - admin mailing list archive at


pgsql-admin by date

Next:From: Chris HooverDate: 2007-08-21 14:54:50
Subject: How to export query results
Previous:From: Peter ElmersDate: 2007-08-21 14:17:08
Subject: Re: adding a user with the permission to create trimmed users

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group