Re: COPY and duplicates

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Ryan Mahoney <ryan(at)paymentalliance(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: COPY and duplicates
Date: 2001-07-13 16:01:28
Message-ID: 20010713110128.A13973@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jul 13, 2001 at 09:40:24AM -0400,
Ryan Mahoney <ryan(at)paymentalliance(dot)net> wrote:
> Is it possible for the COPY command to warn about duplicate key violations
> (and not insert them...) but still proceed inserting the rows that do not
> cause a violation? If not, what is the quickest way to deal with this problem?

You could copy the data into a temporary table and then insert just
run record from a set with the same key into the real table.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2001-07-13 16:07:22 Re: [PATCH] To remove EXTEND INDEX
Previous Message Keith F Irwin 2001-07-13 16:01:03 Re: Postgresql & Python 2