Re: [GENERAL] Exception handling in plperl

2007-03-15 Thread Jasbinder Singh Bali
Hi, Actually, if I rephrase my requirement, I need to catch an exception at any point ,where ever it is raised, in the perl code. E.g during an insert, there is a foreign key contraint violation, then i need to catch this specific error and do something with it. Hope i make some sense here. Thank

Re: [GENERAL] Exception handling in plperl

2007-03-13 Thread Michael Fuhr
On Tue, Mar 13, 2007 at 11:23:03PM -0400, Jasbinder Singh Bali wrote: > I have a stored procedure written in plperl. > This procedure has series of inserts at various levels. A few inserts on > certain tables invoke triggers > that launch tools outside the domain of the database. > > How can I mak

[GENERAL] Exception handling in plperl

2007-03-13 Thread Jasbinder Singh Bali
Hi, I have a stored procedure written in plperl. This procedure has series of inserts at various levels. A few inserts on certain tables invoke triggers that launch tools outside the domain of the database. How can I make everything as one single transaction and simply roll back everything whene