Search Postgresql Archives

UNIQUE_VIOLATION exception, finding out which index would have been violated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux