![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
postgres supports nested transactions by using savepoints. Unfortunately savepoints get lost after a commit. Is there any plan to support nested transactions with several (stacked) begin/commit statements? |
|
I guess that it does *not* require a big code change: If "begin" is used during a transaction it should behave like a savepoint. And "commit/rollback" removes the last element from the stack and does a real commit if the stack gets empty. |
#3
| |||
| |||
|
|
postgres supports nested transactions by using savepoints. Unfortunately savepoints get lost after a commit. Is there any plan to support nested transactions with several (stacked) begin/commit statements? |
|
I guess that it does *not* require a big code change: If "begin" is used during a transaction it should behave like a savepoint. And "commit/rollback" removes the last element from the stack and does a real commit if the stack gets empty. |
#4
| |||
| |||
|
|
postgres supports nested transactions by using savepoints. Unfortunately savepoints get lost after a commit. Is there any plan to support nested transactions with several (stacked) begin/commit statements? |
|
I guess that it does *not* require a big code change: If "begin" is used during a transaction it should behave like a savepoint. And "commit/rollback" removes the last element from the stack and does a real commit if the stack gets empty. |
#5
| |||
| |||
|
|
postgres supports nested transactions by using savepoints. Unfortunately savepoints get lost after a commit. Is there any plan to support nested transactions with several (stacked) begin/commit statements? |
|
I guess that it does *not* require a big code change: If "begin" is used during a transaction it should behave like a savepoint. And "commit/rollback" removes the last element from the stack and does a real commit if the stack gets empty. |
#6
| |||
| |||
|
|
postgres supports nested transactions by using savepoints. Unfortunately savepoints get lost after a commit. Is there any plan to support nested transactions with several (stacked) begin/commit statements? |
|
I guess that it does *not* require a big code change: If "begin" is used during a transaction it should behave like a savepoint. And "commit/rollback" removes the last element from the stack and does a real commit if the stack gets empty. |
#7
| |||
| |||
|
|
postgres supports nested transactions by using savepoints. Unfortunately savepoints get lost after a commit. Is there any plan to support nested transactions with several (stacked) begin/commit statements? |
|
I guess that it does *not* require a big code change: If "begin" is used during a transaction it should behave like a savepoint. And "commit/rollback" removes the last element from the stack and does a real commit if the stack gets empty. |
#8
| |||
| |||
|
|
postgres supports nested transactions by using savepoints. Unfortunately savepoints get lost after a commit. Is there any plan to support nested transactions with several (stacked) begin/commit statements? |
|
I guess that it does *not* require a big code change: If "begin" is used during a transaction it should behave like a savepoint. And "commit/rollback" removes the last element from the stack and does a real commit if the stack gets empty. |
#9
| |||
| |||
|
|
postgres supports nested transactions by using savepoints. Unfortunately savepoints get lost after a commit. Is there any plan to support nested transactions with several (stacked) begin/commit statements? |
|
I guess that it does *not* require a big code change: If "begin" is used during a transaction it should behave like a savepoint. And "commit/rollback" removes the last element from the stack and does a real commit if the stack gets empty. |
#10
| |||
| |||
|
|
Thomas Guettler <hv (AT) tbz-pariv (DOT) de> wrote: postgres supports nested transactions by using savepoints. Unfortunately savepoints get lost after a commit. .... |
|
It is not that simple. A nested transaction must be able to commit even if the surrounding transaction rolls back. You cannot do that with savepoints. |
![]() |
| Thread Tools | |
| Display Modes | |
| |