pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sandeep Khandelwal <sandeep_khandelwal27@yahoo.com>
To: pgsql-interfaces@postgresql.org
Subject: Re: COPY command with bad input
Date: Wed, 16 May 2007 20:23:49 -0700 (PDT)
Message-ID: <188521.66061.qm@web33309.mail.mud.yahoo.com> (raw)

Hi All.

Please help me.

Thanks, 
Sandeep


----- Original Message ----
From: Sandeep Khandelwal <sandeep_khandelwal27@yahoo.com>
To: pgsql-interfaces@postgresql.org
Sent: Tuesday, May 15, 2007 2:41:00 PM
Subject: 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


       
____________________________________________________________________________________Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz 



view thread (3+ messages)  latest in thread

Message-ID: <188521.66061.qm@web33309.mail.mud.yahoo.com>
Permalink:  ../188521.66061.qm@web33309.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/188521.66061.qm@web33309.mail.mud.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: sandeep_khandelwal27@yahoo.com
  Subject: Re: COPY command with bad input
  In-Reply-To: <188521.66061.qm@web33309.mail.mud.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox