Re: COPY COMMAND

From: Richard Huxton <dev(at)archonet(dot)com>
To: Deepa K <kdeepa(at)midascomm(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: COPY COMMAND
Date: 2003-10-07 07:56:19
Message-ID: 200310070856.19753.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday 07 October 2003 07:29, Deepa K wrote:
> Hi All,
> Is it possible to insert n rows with 1 or 2 invalid rows
> using copy command. I used it, it rollbacks everything even if 1 row
> gets an error. Is their any other way to do it.

You need to remove the bad rows. This is IMHO a "Good Thing" (TM) although it
can be irritating.

You should get a line number to indicate where the problem rows are.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tino Wildenhain 2003-10-07 08:40:49 concenation of strings and null values
Previous Message Shridhar Daithankar 2003-10-07 06:36:11 Re: Server recommendations