COPY command with bad input

From: Sandeep Khandelwal <sandeep_khandelwal27(at)yahoo(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: COPY command with bad input
Date: 2007-05-15 09:11:00
Message-ID: 126544.67764.qm@web33313.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi All.

I am trying to load data from a text file to Postgres table using COPY command. If text file has some invalid rows then COPY command stops at the first error.

As you can see, MySQL “load data infile” has IGNORE option. If you specify IGNORE, input rows that duplicate an existing row on a unique key value are skipped. Do we have similar option for Postgres COPY command ?

Please help me.

Thanks,
Sandeep


____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Michael Meskes 2007-05-15 12:44:19 PQexecParams question
Previous Message Tom Lane 2007-05-15 00:24:53 Re: Trouble returning a text field from an SRF