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

Improve SKIP LOCKED implementation #7810

Closed
hvlad opened this issue Oct 20, 2023 · 2 comments · Fixed by #7811 or #7872
Closed

Improve SKIP LOCKED implementation #7810

hvlad opened this issue Oct 20, 2023 · 2 comments · Fixed by #7811 or #7872

Comments

@hvlad
Copy link
Member

hvlad commented Oct 20, 2023

Make SKIP LOCKED works in all transaction isolation levels, including RC NRV
Avoid preliminary lock for UPDATE and DELETE statements

More details at thread "SKIP LOCKED problems" in fb-devel
https://groups.google.com/g/firebird-devel/c/BIbAz_YJMFw

@hvlad
Copy link
Member Author

hvlad commented Nov 22, 2023

The fix #7811 introduced bug in DELETE RETURNING handling - calculated fields now returned as NULL's.
Thus some additional work is required.
Also, documentation should be updated.
Re-opened to fix these issues.

@hvlad hvlad reopened this Nov 22, 2023
hvlad added a commit that referenced this issue Nov 24, 2023
Additional fixes for #7810 (Improve SKIP LOCKED implementation)
@pavel-zotov
Copy link

QA note.
Test checks only UPDATE and DELETE behavior.
Ability to run 'SELECT ... WITH LOCK' is checked in gh_7350_test.py

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