Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
PostgreSQL savepoints are exposed using the standard
releaseSavepoint() methods on the
java.sql.Connection interface. Two
- A savepoint must be rolled back or released in the function where it was set.
- A savepoint must not outlive the function where it was set.
"Function" here refers to the PL/Java function that is called from SQL. The restrictions do not prevent the Java code from being organized into several methods, but the savepoint cannot survive the eventual return from Java to the SQL caller.