From: singh.srajendra@wipro.com
To: pgsql-sql@postgresql.org
Subject: ignoring primary key violations in COPY command
Date: Mon, 14 May 2007 18:06:25 +0530
Message-ID: <B9F9AF34C9B5F743996B82EF46DF07CD03A6D4ED@BLR-EC-MBX04.wipro.com> (raw)
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
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-sql@postgresql.org
Cc: singh.srajendra@wipro.com
Subject: Re: ignoring primary key violations in COPY command
In-Reply-To: <B9F9AF34C9B5F743996B82EF46DF07CD03A6D4ED@BLR-EC-MBX04.wipro.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