By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,864 Members | 1,321 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,864 IT Pros & Developers. It's quick & easy.

Fw: [JDBC] Trigger function aborts the transaction on exception

P: n/a

----- Original Message -----
From: Rajat Katyal
To: pg********
Sent: Saturday, January 31, 2004 10:15 AM
Subject: [JDBC] Trigger function aborts the transaction on exception
I came to know from the postgresql documentation that PostgreSQL does not have a very smart exception handling model. I wonder whether anyone can helpme or suggest some alternate solution for the problem stated below:

I have a trigger function defined for the insert and iam executing sql statement as:

insert into target_table select * from source_table;

Now there could be scenario that in some record error occured due to the type cast therefore i want to catch the execption and want to make it entry in some other table but my process of insertion for the other records should go on as they have valid records. But it throws the exception and aborts the transaction.

Please help me and suggest some solution for this problem.

Thanks in advance.


Nov 22 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.