我有一个关于postgresql嵌套函数和事务的问题。如您所知,postgresql中的每个函数都在一个事务中。我很好奇,如果内部功能失败了,外部函数中的所有更改是否都会回滚?data into table 1; insert some data into table 2;
如果function2中有错误,“表1中的插入”会回滚吗
当应用程序将行插入数据库(PostgreSQL9.1)时,我在我的PlayFramework 2.1.4应用程序上面临问题。实际上,每20个插入应用程序都会抛出以下异常,导致DB连接未正确关闭:org.postgresql.util.PSQLException: Cannot change transaction read-only property in the middle of a transaction.
at org.post