Re: discard on constraint violation

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: discard on constraint violation
Дата
Msg-id 1309179443.14751.15.camel@laptop
обсуждение исходный текст
Ответ на discard on constraint violation  (Sim Zacks <sim@compulab.co.il>)
Список pgsql-general
On Mon, 2011-06-27 at 15:36 +0300, Sim Zacks wrote:
> Is there a way to tell a table to discard an insert if it violates a
> constraint (unique in my case) instead of giving an error? I don't want
> the overhead of a trigger on each row inserted.
>

Without a trigger, you can't.


--
Guillaume
  http://blog.guillaume.lelarge.info
  http://www.dalibo.com


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

Предыдущее
От: Vincent Veyron
Дата:
Сообщение: Re: An amusing MySQL weakness--not!
Следующее
От: Radoslaw Smogura
Дата:
Сообщение: Re: Reusing cached prepared statement slow after 5 executions