
December 20th, 2012, 09:21 AM
|
|
Contributing User
|
|
Join Date: Oct 2003
Location: Germany
|
|
|
A function in PostgreSQL can't commit, so function2 cannot commit "on its own".
You are probably running in auto-commit mode.
You need to call all functions inside a transaction then you can commit or rollback everything after the functions are finished.
__________________
I will not read nor answer questions where the SQL code is messy and not formatted properly using [code] tags.
http://forums.devshed.com/misc.php?do=bbcode#code
Tips on how to ask better questions:
http://tkyte.blogspot.de/2005/06/how-to-ask-questions.html
http://wiki.postgresql.org/wiki/SlowQueryQuestions
http://catb.org/esr/faqs/smart-questions.html
|