pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jaruwan Laongmal <jaruwan@gits.net.th>
To: pgsql-hackers@postgresql.org
To: pgsql-sql@postgresql.org
Subject: problem with copy command
Date: Tue, 10 Apr 2001 15:14:32 +0700
Message-ID: <001f01c0c196$46bcb000$6d9a96cb@ntl> (raw)

dear all,
I currently using postgresql v7.0.3
when i import text file to table with command "copy tablename from
'/tmp/a.txt';
and it shows
"copy: line 20, Cannot insert a duplicate key into unique index testpri_pk"
,then it exits with doing nothing.

I want to ignore this errors and continue copy the next record. How to do
that?
if I don't filter in '/tmp/a.txt' before using copy command.

Thank you so much for your help in advance .
Regards
Jaruwan




view thread (4+ messages)  latest in thread

Message-ID: <001f01c0c196$46bcb000$6d9a96cb@ntl>
Permalink:  ../001f01c0c196$46bcb000$6d9a96cb@ntl/
Also on:    postgresql.org/message-id/001f01c0c196$46bcb000$6d9a96cb@ntl

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: jaruwan@gits.net.th, pgsql-hackers@postgresql.org
  Subject: Re: problem with copy command
  In-Reply-To: <001f01c0c196$46bcb000$6d9a96cb@ntl>
  References: <001f01c0c196$46bcb000$6d9a96cb@ntl>

* 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