Re: Inserting 'large' amounts of data

Поиск
Список
Период
Сортировка
От Maciek Sakrejda
Тема Re: Inserting 'large' amounts of data
Дата
Msg-id 895e58dd0908261703v1a93d2d2p5b69deffebd794da@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Inserting 'large' amounts of data  (John R Pierce <pierce@hogranch.com>)
Список 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 по дате отправления:

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Inserting 'large' amounts of data
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Inserting 'large' amounts of data