-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
postgres: Make ensureVersionTable
atomic
#150
postgres: Make ensureVersionTable
atomic
#150
Conversation
Closed and reopened to trigger CI again which had a flake in the previous run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for investigating and fixing!
I think this approach is fine for now. Specifically, for postgres, we don't need to worry about the lock stomping over itself since we're using session level advisory locks which are reentrant.
There's the larger issue where all driver operations should be atomic for all drivers. Locks may not be reentrant for other db drivers. I'll create a separate issue for this.
@dhui: Please take another look! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing the feedback!
4793961
to
8323c1c
Compare
@dhui: Please take another look :-) |
This commit reverts back to querying the existance of the table instead of using CREATE IF NOT EXISTS because we want to support versions of Postgres older than 9.1 which is when this feature was introduced.
a112283
to
41a595f
Compare
@dhui: I added the dependency manually to Gopkg.toml but that didn't seem to work. Running Not sure how to proceed. Please help :-) |
- Updates Gopkg.lock after github.com/hashicorp/go-multierror package was manually added to Gopkg.toml
Thanks for adding the dependency via
I pushed a new commit that updates Gopkg.lock to your repo branch. Once tests pass, I'll merge. |
Will cut a new release in ~1 week |
Fixes #55. Superseeds #149.