X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id DE5279FB1F4 for ; Thu, 27 Jul 2006 08:43:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 87912-06 for ; Thu, 27 Jul 2006 08:43:16 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by postgresql.org (Postfix) with SMTP id E73FC9FB1C0 for ; Thu, 27 Jul 2006 08:42:45 -0300 (ADT) Received: (qmail invoked by alias); 27 Jul 2006 11:42:44 -0000 Received: from ktbl.heagmedianet.de (EHLO PCMELZER) [213.188.107.46] by mail.gmx.net (mp043) with SMTP; 27 Jul 2006 13:42:44 +0200 X-Authenticated: #17979613 From: "Peter Neu" To: Subject: Best Way to handle duplicate key exceptions Date: Thu, 27 Jul 2006 13:42:24 +0200 Message-ID: <002001c6b171$ba67e670$bcc8a8c0@PCMELZER> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 thread-index: AcaxYM4iHZFiov2MSwS+b+h90F8/pwAEHZ/Q In-Reply-To: <44C884B0.40007@mosaic-ag.com> X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.067 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, SPF_PASS X-Spam-Level: X-Archive-Number: 200607/92 X-Sequence-Number: 15518 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