Hello! I have a question about catching exceptions. If I write a plpgsql function like this begin do stuff; exception when X then .... when Y then ... end; If the "do stuff" part can result in two different unique_violation exception (having two unique constraints), how can I detect which one was triggered? -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general