Re: Inserting 'large' amounts of data - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Inserting 'large' amounts of data
Date
Msg-id 4A95CC73.1030000@ejurka.com
Whole thread Raw
In response to Re: Inserting 'large' amounts of data  (John R Pierce <pierce@hogranch.com>)
List pgsql-jdbc

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

pgsql-jdbc by date:

Previous
From: Maciek Sakrejda
Date:
Subject: Re: Inserting 'large' amounts of data
Next
From: Oliver Jowett
Date:
Subject: Re: PGStream synchronization