Re: Pg_Restore with --clean option - Mailing list pgsql-sql

From Scott Marlowe
Subject Re: Pg_Restore with --clean option
Date
Msg-id dcc563d10909302337v5fbb5141k36476078c0e36e1b@mail.gmail.com
Whole thread Raw
In response to Pg_Restore with --clean option  (Jyoti Seth <jyotiseth2001@gmail.com>)
List pgsql-sql
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.


pgsql-sql by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Can i customize null-padding for outer joins?
Next
From: "A. Kretschmer"
Date:
Subject: Re: Can i customize null-padding for outer joins?