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

db: fix outer join read lock for PostgreSQL #262

Closed
mlassnig opened this issue Dec 2, 2017 · 1 comment
Closed

db: fix outer join read lock for PostgreSQL #262

mlassnig opened this issue Dec 2, 2017 · 1 comment

Comments

@mlassnig
Copy link
Contributor

mlassnig commented Dec 2, 2017

Motivation

PostgreSQL is interpreting the SQL standard correctly, it's actually Oracle and MySQL which are doing non-standard things here. The problem you see is that for an outer join the nullable side cannot be locked for reading, so PostgreSQL stops. This is the last outstanding issue for PostgreSQL compatibility.

Modification

Changing the query for add-rule from "select outer join for update" into something like "select for update union select".

Expected behavior

add-rule will work on PostgreSQL.

@mlassnig
Copy link
Contributor Author

mlassnig commented Dec 2, 2017

I suggest raising the priority on this.

vingar added a commit to vingar/rucio that referenced this issue Dec 2, 2017
vingar added a commit to vingar/rucio that referenced this issue Dec 3, 2017
@bari12 bari12 added this to the 1.14.1 milestone Dec 3, 2017
vingar added a commit to vingar/rucio that referenced this issue Dec 4, 2017
@bari12 bari12 closed this as completed in 83f3851 Dec 4, 2017
bari12 added a commit that referenced this issue Dec 4, 2017
bari12 added a commit that referenced this issue Dec 4, 2017
vingar added a commit to vingar/rucio that referenced this issue Dec 15, 2017
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