pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Jyoti Seth <jyotiseth2001@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Pg_Restore with --clean option
Date: Thu, 1 Oct 2009 00:37:13 -0600
Message-ID: <dcc563d10909302337v5fbb5141k36476078c0e36e1b@mail.gmail.com> (raw)
In-Reply-To: <25693180.post@talk.nabble.com>
References: <25693180.post@talk.nabble.com>

On Wed, Sep 30, 2009 at 11:14 PM, Jyoti Seth <jyotiseth2001@gmail.com> wrote:
>
> I want to restore data of a single table. Before restoring the data I
> disabled all the triggers and constraints on that table. I used the restore
> command with --clean option so that data gets deleted from that table and
> then fresh data get inserted.

You could run truncate on the table then just restore its data from
the other machine.  If you still get dups then there's dups in the
original data.



view thread (3+ messages)

Message-ID: <dcc563d10909302337v5fbb5141k36476078c0e36e1b@mail.gmail.com>
Permalink:  ../dcc563d10909302337v5fbb5141k36476078c0e36e1b@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10909302337v5fbb5141k36476078c0e36e1b@mail.gmail.com

 · 

reply

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-sql@postgresql.org
  Cc: scott.marlowe@gmail.com, jyotiseth2001@gmail.com
  Subject: Re: Pg_Restore with --clean option
  In-Reply-To: <dcc563d10909302337v5fbb5141k36476078c0e36e1b@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