X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id C68179FB256 for ; Mon, 28 Aug 2006 21:01:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 51161-06 for ; Tue, 29 Aug 2006 00:00:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by postgresql.org (Postfix) with ESMTP id D03C69FB317 for ; Mon, 28 Aug 2006 21:00:46 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id d80so2596365pyd for ; Mon, 28 Aug 2006 17:00:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=Utp44Be0JbheRqTvHODZngENxaTyXq5XeH+C5eCnAsNlLv3zcvr7B6jB1mNVJ7T+a6+DFkuhvcuJ8vZLPGHXYFQK7ofOrJloTq9TWn1G+mYrWFQJeGuYRGBAhNSK0Lr0rgOx7rW6EWfehB/QP+vqDR/bDT9Lika4V6DMAfEsuQM= Received: by 10.35.61.14 with SMTP id o14mr13534898pyk; Mon, 28 Aug 2006 17:00:45 -0700 (PDT) Received: by 10.35.80.9 with HTTP; Mon, 28 Aug 2006 17:00:45 -0700 (PDT) Message-ID: Date: Mon, 28 Aug 2006 19:00:45 -0500 From: "Aaron Bono" To: "Gera Mel Handumon" Subject: Re: duplicate records after restore Cc: pgsql-admin@postgresql.org In-Reply-To: <474404120608272321l7d775eb8y57e2547699ca674c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_234180_23926977.1156809645388" References: <474404120608272321l7d775eb8y57e2547699ca674c@mail.gmail.com> X-Google-Sender-Auth: 14fb6e5f3019590b X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.374 tagged_above=0 required=5 tests=HTML_30_40, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/311 X-Sequence-Number: 22854 ------=_Part_234180_23926977.1156809645388 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/28/06, Gera Mel Handumon 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.com http://codeelixir.com ================================================================== ------=_Part_234180_23926977.1156809645388 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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.com
   http://codeelixir.com
================================================================== ------=_Part_234180_23926977.1156809645388--