pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Neu <peter.neu@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Best Way to handle duplicate key exceptions
Date: Thu, 27 Jul 2006 13:42:24 +0200
Message-ID: <002001c6b171$ba67e670$bcc8a8c0@PCMELZER> (raw)
In-Reply-To: <44C884B0.40007@mosaic-ag.com>

Hello,

what is he best way to handle duplicate key exceptions? When I do bulk
import I don't want
the insert process to fail simply because somebody gave me an inconsistent
csv file.

Is there simple way to tell Postgres to simply insert everything that is
good and let me log the errors?

Cheers,
Pete







Message-ID: <002001c6b171$ba67e670$bcc8a8c0@PCMELZER>
Permalink:  ../002001c6b171$ba67e670$bcc8a8c0@PCMELZER/
Also on:    postgresql.org/message-id/002001c6b171$ba67e670$bcc8a8c0@PCMELZER

 · 

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-jdbc@postgresql.org
  Cc: peter.neu@gmx.net
  Subject: Re: Best Way to handle duplicate key exceptions
  In-Reply-To: <002001c6b171$ba67e670$bcc8a8c0@PCMELZER>
  References: <44C884B0.40007@mosaic-ag.com> <002001c6b171$ba67e670$bcc8a8c0@PCMELZER>

* 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