From: Infor Gates <info_gates@yahoo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_restore
Date: Sat, 17 Jun 2006 19:55:41 -0700 (PDT)
Message-ID: <20060618025541.91508.qmail@web31110.mail.mud.yahoo.com> (raw)
In-Reply-To: <21690.1150562331@sss.pgh.pa.us>
Dear Tom
Thanks for your email.
You are right in saying table is already populated with the data. I was
testing the pg_dump and pg_restore using pg_Admin III.
I am having the impression that pg_restore would over-rides the "old"
data with the current one. Is my thinking wrong? I have checked the
documentation but it was silence on this. Does it means that whenever
I performed a pg_restore, I must first drop the "old" database.
I would be glad if you can help to clarify my understanding on
pg_dump and pg_restore functions.
Thank you.
CY
Tom Lane <tgl@sss.pgh.pa.us> wrote: Infor Gates writes:
> I hope you could help me understand the error message below:
> While it looks straight forward, I could NOT find the duplicate key violation,
Considering that it's complaining at the very first line of COPY data,
I wonder whether you aren't restoring into a table that already contains
the data you want to load. pg_restore doesn't (by default) try to
delete data that's already present.
regards, tom lane
---------------------------------
Yahoo! Groups gets better. Check out the new email design. Plus there’s much more to come.
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: info_gates@yahoo.com, tgl@sss.pgh.pa.us
Subject: Re: pg_restore
In-Reply-To: <20060618025541.91508.qmail@web31110.mail.mud.yahoo.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