Importing data only

From: Lisa Goulet <Lisa(dot)Goulet(at)versatel(dot)nl>
To: pgsql-general(at)postgresql(dot)org
Subject: Importing data only
Date: 2001-03-07 14:58:16
Message-ID: 77A588078DF6D3118C0A00508B8E0367038758E1@AMSHQB-EXCH02
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I've set up a secondary server and want to keep the db updated with a
combination of pgdump and rsync. Here's what I do:

pgdump -a mydb > mydb.pgdump
cat mydb.pgdump | psql mydb

which results in several "Cannot insert a duplicate key into unique index"
errors. What's the best way to overwrite existing data without a
dropdb+createdb etc?

Thanks in advance,
Lisa

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2001-03-07 15:16:41 Re: pg_dumpall -c (7.1 beta 4 buglet)
Previous Message Rod Taylor 2001-03-07 14:42:48 pg_dumpall -c (7.1 beta 4 buglet)