-
Notifications
You must be signed in to change notification settings - Fork 916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Transactions with different isolation levels #476
Comments
Unfortunately I don't see how this could possibly work given that we have to work with the interface database/sql provides. |
I agree--I think the limited |
This issue should be able to be fixed with the introduction of IsolationLevels to database/sql with 1.8 assuming enough implementation happens with #531 for it not to be pulled. |
This is in 1.8 and lack of it is preventing me from cleaning up code manually setting isolation level inside every transaction. |
Has this not been fixed now that ed1a26d has landed? |
I can confirm that it works perfectly for me. |
Postgres supports several isolation levels: see https://www.postgresql.org/docs/current/static/transaction-iso.html
Some types of systems need the guarantees provided by the more strict isolation levels.
To get around this support I have been running a simple command to upgrade the transaction, but it would be nice if there was an easy way to start the transaction that way.
Like:
There are other options that would be useful for performance tuning, such as
READ WRITE
,READ ONLY
, and[ NOT ] DEFERRABLE
.The text was updated successfully, but these errors were encountered: