Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 6FC799FB9CB for ; Mon, 14 May 2007 09:40:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 35558-04 for ; Mon, 14 May 2007 09:40:07 -0300 (ADT) X-Greylist: delayed 00:39:07.003827 by SQLgrey-1.7.5 Received: from wip-ectls-mx1.wipro.com (wip-ectls-mx1.wipro.com [203.91.193.21]) by postgresql.org (Postfix) with ESMTP id 473AE9FB975 for ; Mon, 14 May 2007 09:40:11 -0300 (ADT) Received: from wip-ectls-mx1.wipro.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 62BCA220438 for ; Mon, 14 May 2007 18:10:27 +0530 (IST) Received: from blr-ec-bh02.wipro.com (blr-ec-bh02.wipro.com [10.201.50.92]) by wip-ectls-mx1.wipro.com (Postfix) with ESMTP id 5504C22044A for ; Mon, 14 May 2007 18:10:27 +0530 (IST) Received: from BLR-EC-MBX04.wipro.com ([10.201.50.168]) by blr-ec-bh02.wipro.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 14 May 2007 18:10:05 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C79624.FF32F80B" Subject: ignoring primary key violations in COPY command Date: Mon, 14 May 2007 18:06:25 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ignoring primary key violations in COPY command thread-index: AceWHwiBeoj1vJbZR9+VqmKyv7UPDAABWjwg From: To: X-OriginalArrivalTime: 14 May 2007 12:40:05.0086 (UTC) FILETIME=[FF609FE0:01C79624] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/142 X-Sequence-Number: 28422 This is a multi-part message in MIME format. ------_=_NextPart_001_01C79624.FF32F80B Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all,=20 We are importing the data from the CSV file into the database using COPY command. But when the 'primary key ' violation occurs , it stops=20 Then and there and data is not updated into the tables. Also in the CSV file the number of columns is not fixed , its varies=20 In number , it can range anywhere between 1 -22, I need to figure out a way such that I need to update only those columns which are present=20 In the CSV file . This of course I would like to accomplish using COPY command , Please let me know if at all this is possible in postgresql 8.1 Thanks and regards, Rajendra Singh =20 Wipro Technologies Plot No. 72, Hosur Main road Keonics Electronics City Bangalore- 560100, INDIA I believe we should all pay our tax with a smile. I tried - but they wanted cash The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.=20 WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com =09 The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and= may contain proprietary, confidential or privileged information. If you= are not the intended recipient, you should not disseminate, distribute or= copy this e-mail. Please notify the sender immediately and destroy all= copies of this message and any attachments.=20 WARNING: Computer viruses can be transmitted via email. The recipient= should check this email and any attachments for the presence of viruses.= The company accepts no liability for any damage caused by any virus= transmitted by this email. =20 www.wipro.com ------_=_NextPart_001_01C79624.FF32F80B Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable ignoring primary key violations in COPY command

Hi all,

We are importing the data from the CSV file into the database using COPY= command. But when the ‘primary key ‘ violation occurs , it= stops

Then and there and data is not updated into= the tables. Also in the CSV file the number of columns is not fixed , its varies=

In number , it can range anywhere between 1 -22, I need to= figure out a way such that I need to update only those columns= which are present

In the CSV file . This of course  I would like to= accomplish using COPY command , Please let me know if at all this is possible in postgresql 8.1

Thanks and= regards,

Rajendra Singh

 

Wipro Technologies

Plot No. 72, Hosur Main road

Keonics= Electronics City

Bangalore- 560100,= INDIA

I believe we= should all pay our tax with a smile. I tried - but they wanted= cash


The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and= may contain proprietary, confidential or privileged information. If you= are not the intended recipient, you should not disseminate, distribute or= copy this e-mail. Please notify the sender immediately and destroy all= copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient= should check this email and any attachments for the presence of viruses.= The company accepts no liability for any damage caused by any virus= transmitted by this email.

www.wipro.com

The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and= may contain proprietary, confidential or privileged information. If you= are not the intended recipient, you should not disseminate, distribute or= copy this e-mail. Please notify the sender immediately and destroy all= copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient= should check this email and any attachments for the presence of viruses.= The company accepts no liability for any damage caused by any virus= transmitted by this email.

www.wipro.com
------_=_NextPart_001_01C79624.FF32F80B--