Skip to content
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

sql: Support SELECT FOR UPDATE #18656

Closed
tlvenn opened this issue Sep 21, 2017 · 1 comment
Closed

sql: Support SELECT FOR UPDATE #18656

tlvenn opened this issue Sep 21, 2017 · 1 comment

Comments

@tlvenn
Copy link
Contributor

tlvenn commented Sep 21, 2017

Hi all,

I tried to find an issue already covering this given I am surprised it did not surface yet but I failed..

Ecto (Elixir ORM) has recently introduced on master support for multiple concurrent migrators and they do this by locking the migration table using a SELECT FOR UPDATE statement which is not supported by CDB at the moment.

elixir-ecto/ecto@d28aeba

I suspect other migration tool will behave the same and I checked Flyway for example, and they do leverage it as well

https://github.com/flyway/flyway/blob/eb14b2d84f37a7396e30fbc4da285959ea50512c/flyway-core/src/main/java/org/flywaydb/core/internal/dbsupport/postgresql/PostgreSQLTable.java#L60

Is there any chance to support this ?

@tlvenn
Copy link
Contributor Author

tlvenn commented Sep 21, 2017

And somehow missed #6583

Sorry for the noise, will close this issue and will try to work with Ecto so that concurrent migrators are optional.

Thanks

@tlvenn tlvenn closed this as completed Sep 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant