Ignore unique violations?

Поиск
Список
Период
Сортировка
От A B
Тема Ignore unique violations?
Дата
Msg-id dbbf25900803270245k439841bdq45f14dffa340c1a3@mail.gmail.com
обсуждение исходный текст
Ответы Re: Ignore unique violations?  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-novice
Is there any easy way of ignoring unique violations?
I have a table (a integer, b integer, unique (a,b) ) and want to
insert pairs of values for a and b, but I do not want to first select
to see if there is a pair  before inserting.
So can I make postgres ignore any error or exception?

The inserts are placed inside of a transaction and I really don't want
any silly error to abort it.

В списке pgsql-novice по дате отправления:

Предыдущее
От: "A B"
Дата:
Сообщение: Reuse serial numbers?
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: Reuse serial numbers?