Return Value on UPDATE trigger - Mailing list pgsql-novice

From derrick@grifflink.com
Subject Return Value on UPDATE trigger
Date
Msg-id 028901c49f45$5413f390$0200a8c0@main
Whole thread Raw
In response to Backups  (Eduardo Vázquez Rodríguez<evazquez@insys-corp.com.mx>)
List pgsql-novice
On a table update, I want to check for certain conditions in a trigger
function, and if a condition is met, NOT ALLOW the update.  Not a big
problem...I can accomplish that.

My question is this:  How can I send a message back to the calling
application telling the user that the update was denied or failed, and for
the user to try again?  Basically, I need a way to send a return value back
to the application (a 0 or a 1) when a trigger function says so.

Any ideas?

Thanks,
Derrick


pgsql-novice by date:

Previous
From: Eduardo Vázquez Rodríguez
Date:
Subject: Backups
Next
From: Antoine
Date:
Subject: oracle 9i to postgres 7.4.5