Hi, I am just a beginner in postgreSQL and writing some functions in PL/pgSQL. I use the libpq interface in the client to call this funtions. My pgsql function does an insert to a table and I have opened a transaction block before calling my function from the client. When the insert operation fails due to unique key violation the whole transaction aborts. Is there a way I can handle this error in my pgsql funtion rather that aborting and not executing the rest of the operations?. I have a workaround , But I was wondering if there is an inexpensive way of doing it.
Another query I have is related to returning values from funtions. How can I return multiple values from a function? Is there any support for OUT variable in pgsql functions? Any pointers on this is greatly appreciated. Thanks Diya. __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org