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

Support for FOR UPDATE NO WAIT on postgres. #1623

Closed
ybbkrishna opened this issue Nov 2, 2022 · 1 comment
Closed

Support for FOR UPDATE NO WAIT on postgres. #1623

ybbkrishna opened this issue Nov 2, 2022 · 1 comment

Comments

@ybbkrishna
Copy link

ybbkrishna commented Nov 2, 2022

We are planning to use FOR UPDATE NO WAIT to return with an exception instead of getting blocked on another transaction.

is there any reason this was not added for postgres here ?

If no particular reason, we can raise a PR to support this.

@leazardy
Copy link

Hey @Tapac! How I can use it with update statement?
e.g. MyTable.update( {<where statement>}, forUpdate = MODE.SKIP_LOCKED ) { <update statement> }

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

No branches or pull requests

3 participants