Importing data only - Mailing list pgsql-general

From Lisa Goulet
Subject Importing data only
Date
Msg-id 77A588078DF6D3118C0A00508B8E0367038758E1@AMSHQB-EXCH02
Whole thread Raw
Responses Re: Importing data only
List 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

pgsql-general by date:

Previous
From: "Rod Taylor"
Date:
Subject: pg_dumpall -c (7.1 beta 4 buglet)
Next
From: Bruce Momjian
Date:
Subject: Re: pg_dumpall -c (7.1 beta 4 buglet)