COPY error handling

From: Bricklen <bricklen-rem(at)yahoo(dot)comz>
To: pgsql-general(at)postgresql(dot)org
Subject: COPY error handling
Date: 2004-06-04 14:11:19
Message-ID: bq%vc.23147$OI5.15838@edtnps84
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, I'm not sure if this is the correct group for this question, but
I'll post it hoping that it is.
I'm loading several ~15 million row files into a table using the COPY
command. Apparently one of the rows, about 6 million in, has an invalid
entry. This is causing the COPY command to fail, so my question is this:
Is there any way to skip invalid rows? Or send them to a separate log
file etc to go through later?
I've gone through the docs, but I didn't see anything specific to this.
Any information, links, or hints are greatly appreciated.

Cheers!

Bricklen

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2004-06-04 14:21:38 Re: VACUUM Question
Previous Message Tom Lane 2004-06-04 13:50:05 Re: after using pg_resetxlog, db lost