Re: error handling

From: Terry Lee Tucker <terry(at)esc1(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: error handling
Date: 2006-04-27 14:16:33
Message-ID: 200604271016.33580.terry@esc1.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Thursday 27 April 2006 09:29 am, Verena Ruff <lists(at)triosolutions(dot)at> thus
communicated:
--> Hello,
-->
--> I have a table with an UNIQUE constraint. Is it possible to have
--> something like a trigger (or error handler) which is called every time
--> a insert statement would break this constraint? Or in some simple cases
--> that this record is just dropped silently, without reporting an error?
-->
--> Tanks in advance,
--> Verena
-->
--> ---------------------------(end of broadcast)---------------------------
--> TIP 6: explain analyze is your friend
-->
I believe that a UNIQUE constraint will stop the insert before any trigger
ever fires. Maybe someone else knows for sure.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Oscar Rodriguez Fonseca 2006-04-27 15:28:08 Re: error handling
Previous Message Verena Ruff 2006-04-27 13:29:07 error handling