Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

COPY command with bad input



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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group