Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 6427C634D91 for ; Wed, 26 Aug 2009 21:05:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 61867-08 for ; Thu, 27 Aug 2009 00:05:21 +0000 (UTC) X-Greylist: delayed 00:05:02.211392 by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id A2BF1634982 for ; Wed, 26 Aug 2009 21:05:21 -0300 (ADT) Received: from [192.168.1.141] (adsl-71-128-101-241.dsl.irvnca.pacbell.net [71.128.101.241]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail63.csoft.net (Postfix) with ESMTPSA id 2869228463; Wed, 26 Aug 2009 20:00:17 -0400 (EDT) Message-ID: <4A95CC73.1030000@ejurka.com> Date: Wed, 26 Aug 2009 16:59:47 -0700 From: Kris Jurka User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: John R Pierce CC: pgsql-jdbc@postgresql.org Subject: Re: Inserting 'large' amounts of data References: <4A9562BC.8030804@megafon.hr> <4A956E17.9020607@hogranch.com> <4A95B674.2020103@megafon.hr> <4A95CB7F.7060006@hogranch.com> In-Reply-To: <4A95CB7F.7060006@hogranch.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.74 tagged_above=-10 required=5 tests=BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 200908/70 X-Sequence-Number: 19919 John R Pierce wrote: > > speaking of using JDBC COPY FROM STDIN via this CopyManager > interface... how does that handle constraint violations, like duplicate > primary key? > Just like a regular copy failure via psql or constraint violation. An Exception is thrown and the transaction is aborted (which you must rollback). Kris Jurka