From: Kris Jurka <books@ejurka.com>
To: John R Pierce <pierce@hogranch.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Inserting 'large' amounts of data
Date: Wed, 26 Aug 2009 16:59:47 -0700
Message-ID: <4A95CC73.1030000@ejurka.com> (raw)
In-Reply-To: <4A95CB7F.7060006@hogranch.com>
References: <4A9562BC.8030804@megafon.hr>
<4A956E17.9020607@hogranch.com>
<4A95B674.2020103@megafon.hr>
<alpine.BSO.2.00.0908261832270.9081@leary.csoft.net>
<4A95CB7F.7060006@hogranch.com>
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
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: books@ejurka.com, pierce@hogranch.com
Subject: Re: Inserting 'large' amounts of data
In-Reply-To: <4A95CC73.1030000@ejurka.com>
References: <4A9562BC.8030804@megafon.hr> <4A956E17.9020607@hogranch.com> <4A95B674.2020103@megafon.hr> <alpine.BSO.2.00.0908261832270.9081@leary.csoft.net> <4A95CB7F.7060006@hogranch.com> <4A95CC73.1030000@ejurka.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