Re: Pg_Restore with --clean option

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Jyoti Seth <jyotiseth2001(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Pg_Restore with --clean option
Date: 2009-10-01 06:37:13
Message-ID: dcc563d10909302337v5fbb5141k36476078c0e36e1b@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Sep 30, 2009 at 11:14 PM, Jyoti Seth <jyotiseth2001(at)gmail(dot)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.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message A. Kretschmer 2009-10-01 06:40:21 Re: Can i customize null-padding for outer joins?
Previous Message Scott Marlowe 2009-10-01 06:22:28 Re: Can i customize null-padding for outer joins?