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

From Maciek Sakrejda
Subject Re: Inserting 'large' amounts of data
Date
Msg-id 895e58dd0908261703v1a93d2d2p5b69deffebd794da@mail.gmail.com
Whole thread Raw
In response to Re: Inserting 'large' amounts of data  (John R Pierce <pierce@hogranch.com>)
List pgsql-jdbc
In the same manner as regular DML--you'll get a constraint violation:

cqdb=# create table foo(a int unique);
NOTICE:  CREATE TABLE / UNIQUE will create implicit index "foo_a_key"
for table "foo"
CREATE TABLE
cqdb=# copy foo from stdin;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
>> 1
>> 1
>> 1
>> \.
ERROR:  duplicate key value violates unique constraint "foo_a_key"
CONTEXT:  COPY foo, line 2: "1"

(This is straight through psql, but essentially the same thing would
happen through jdbc).

--
Maciek Sakrejda | Software Engineer | Truviso
(650) 242-3500 Main
(650) 242-3501 F
msakrejda@truviso.com
www.truviso.com

pgsql-jdbc by date:

Previous
From: John R Pierce
Date:
Subject: Re: Inserting 'large' amounts of data
Next
From: Kris Jurka
Date:
Subject: Re: Inserting 'large' amounts of data