UNIQUE_VIOLATION exception, finding out which index would have been violated - Mailing list pgsql-general

From Petri Simolin
Subject UNIQUE_VIOLATION exception, finding out which index would have been violated
Date
Msg-id 73d342e61372005424c70b511527b1b4@mail.petrisimolin.com
Whole thread Raw
Responses Re: UNIQUE_VIOLATION exception, finding out which index would have been violated
List 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 by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: [Urgent] Regexp_replace question
Next
From: "Phoenix Kiula"
Date:
Subject: Re: [Urgent] Regexp_replace question