Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

document autosave #30

Open
davecramer opened this issue Sep 16, 2016 · 0 comments
Open

document autosave #30

davecramer opened this issue Sep 16, 2016 · 0 comments

Comments

@davecramer
Copy link
Member

New connection property: autosave

conservative (default) -- rollback to savepoint only in case of "prepared statement does not exist" and "cached plan must not change result type". Then the driver would re-execute the statement ant it would pass through
never -- never set automatic safepoint. Note: in this mode statements might still fail with "cached plan must not change result type" in autoCommit=FALSE mode
always -- always rollback to "before statement execution" state in case of failure. This mode prevents "current transaction aborted" errors. It is similar to psql's ON_ERROR_ROLLBACK.
For autocommit=true the savepoint is not used.
In conservative mode, savepoint is used only for queries that return something.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant