Skip to content

Commit

Permalink
new removal of for update in postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 23, 2015
1 parent c96e9e4 commit 80ff527
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data/src/entity_pgsql/system.py
Expand Up @@ -589,7 +589,12 @@ def _allow_alter_drop(self):
return False

def _allow_for_update(self):
return True
# currently pgsql does not support the row level locking
# for outer joins, meaning that queries that for queries
# contain relations loading it would be impossible to lock
# the selected rows, making the for update support not reliable
# this is considered a major drawback towards pgsql usage
return False

class IntegrityError(RuntimeError):
pass

0 comments on commit 80ff527

Please sign in to comment.