COPY command and skipping errors

From: "Tomeh, Husam" <htomeh(at)firstam(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: COPY command and skipping errors
Date: 2005-09-22 19:32:50
Message-ID: C45835824D00A844BBD0F032D5CDED920116DD4E@pisgana01sxch01.ana.firstamdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Is there a way to skip errors during the run of the COPY command
(loading data from a file to a table) like what Oracle SQL*Loader has?
The reason I'm asking is that if the extract file from the mainframe has
an invalid character, the COPY terminates and doesn't continue loading
the rest of records.

Thanks,

--
Husam

---------------------------(end of broadcast)---------------------------

TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq <http://www.postgresql.org/docs/faq>

**********************************************************************
This message contains confidential information intended only for the
use of the addressee(s) named above and may contain information that
is legally privileged. If you are not the addressee, or the person
responsible for delivering it to the addressee, you are hereby
notified that reading, disseminating, distributing or copying this
message is strictly prohibited. If you have received this message by
mistake, please immediately notify us by replying to the message and
delete the original message immediately thereafter.

Thank you. FADLD Tag
**********************************************************************

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tomeh, Husam 2005-09-22 19:38:07 Backing up several tables using pg_dump -t
Previous Message Kevin Keith 2005-09-22 16:49:24 Re: Copy command not writing complete data to text file