![]() | |
#91
| |||
| |||
|
|
You are right, I did not think of that - all statements in a BEGIN ... EXCEPTION block that were executed before the exception occurred will not be rolled back. In autocommit mode there is also an active transaction; all statements in a function run in that same transaction. So basically what you would like are SAVEPOINT and ROLLBACK TO SAVEPOINT statements in a function, right? Maybe you could ask the pgsql-hackers list if this would be a good feature to add. |
#92
| |||
| |||
|
|
You are right, I did not think of that - all statements in a BEGIN ... EXCEPTION block that were executed before the exception occurred will not be rolled back. In autocommit mode there is also an active transaction; all statements in a function run in that same transaction. So basically what you would like are SAVEPOINT and ROLLBACK TO SAVEPOINT statements in a function, right? Maybe you could ask the pgsql-hackers list if this would be a good feature to add. |
#93
| |||
| |||
|
|
You are right, I did not think of that - all statements in a BEGIN ... EXCEPTION block that were executed before the exception occurred will not be rolled back. In autocommit mode there is also an active transaction; all statements in a function run in that same transaction. So basically what you would like are SAVEPOINT and ROLLBACK TO SAVEPOINT statements in a function, right? Maybe you could ask the pgsql-hackers list if this would be a good feature to add. |
#94
| |||
| |||
|
|
You are right, I did not think of that - all statements in a BEGIN ... EXCEPTION block that were executed before the exception occurred will not be rolled back. In autocommit mode there is also an active transaction; all statements in a function run in that same transaction. So basically what you would like are SAVEPOINT and ROLLBACK TO SAVEPOINT statements in a function, right? Maybe you could ask the pgsql-hackers list if this would be a good feature to add. |
#95
| |||
| |||
|
|
You are right, I did not think of that - all statements in a BEGIN ... EXCEPTION block that were executed before the exception occurred will not be rolled back. In autocommit mode there is also an active transaction; all statements in a function run in that same transaction. So basically what you would like are SAVEPOINT and ROLLBACK TO SAVEPOINT statements in a function, right? Maybe you could ask the pgsql-hackers list if this would be a good feature to add. |
#96
| |||
| |||
|
|
You are right, I did not think of that - all statements in a BEGIN ... EXCEPTION block that were executed before the exception occurred will not be rolled back. In autocommit mode there is also an active transaction; all statements in a function run in that same transaction. So basically what you would like are SAVEPOINT and ROLLBACK TO SAVEPOINT statements in a function, right? Maybe you could ask the pgsql-hackers list if this would be a good feature to add. |
#97
| |||
| |||
|
|
You are right, I did not think of that - all statements in a BEGIN ... EXCEPTION block that were executed before the exception occurred will not be rolled back. In autocommit mode there is also an active transaction; all statements in a function run in that same transaction. So basically what you would like are SAVEPOINT and ROLLBACK TO SAVEPOINT statements in a function, right? Maybe you could ask the pgsql-hackers list if this would be a good feature to add. |
![]() |
| Thread Tools | |
| Display Modes | |
| |