UNIQUE_VIOLATION exception, finding out which index would have been violated

Поиск
Список
Период
Сортировка
От Petri Simolin
Тема UNIQUE_VIOLATION exception, finding out which index would have been violated
Дата
Msg-id 73d342e61372005424c70b511527b1b4@mail.petrisimolin.com
обсуждение исходный текст
Ответы Re: UNIQUE_VIOLATION exception, finding out which index would have been violated  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
Greetings list,

I have created a function which inserts a row in a table which has 2 unique
indexes on two different columns.

I am wondering, if there is a way in case of UNIQUE_VIOLATION exception to
find out which index would have been violated?

Petri Simolin



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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: [Urgent] Regexp_replace question
Следующее
От: "Phoenix Kiula"
Дата:
Сообщение: Re: [Urgent] Regexp_replace question