From: Aaron Bono <postgresql@aranya.com>
To: Gera Mel Handumon <geramel.h@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: duplicate records after restore
Date: Mon, 28 Aug 2006 19:00:45 -0500
Message-ID: <bf05e51c0608281700y4bb89220l1692b9c4c645e160@mail.gmail.com> (raw)
In-Reply-To: <474404120608272321l7d775eb8y57e2547699ca674c@mail.gmail.com>
References: <474404120608272321l7d775eb8y57e2547699ca674c@mail.gmail.com>
On 8/28/06, Gera Mel Handumon <geramel.h@gmail.com> wrote:
>
> hi,
>
> I have 2 pc pc1,pc2. i create a backup from pc1 and restore to pc2. After
> database restore it will create a duplicate records of my attendance table.
> i used pgadmin3 1.4.3 for backup/restore.
>
> Any help would be greatly appreciated.
>
When I do backup/restore, I just use pg_dump to do the backup and then psql
to import the backup. Note that before restoring, I drop the database and
recreate it. This ensures the database is "clean" before the import.
==================================================================
Aaron Bono
Aranya Software Technologies, Inc.
http://www.aranya.comhttp://codeelixir.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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: postgresql@aranya.com, geramel.h@gmail.com
Subject: Re: duplicate records after restore
In-Reply-To: <bf05e51c0608281700y4bb89220l1692b9c4c645e160@mail.gmail.com>
References: <474404120608272321l7d775eb8y57e2547699ca674c@mail.gmail.com> <bf05e51c0608281700y4bb89220l1692b9c4c645e160@mail.gmail.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