Fix devices_last_seen background update.

Fixes #6134.
This commit is contained in:
Erik Johnston 2019-09-30 11:58:36 +01:00
parent 6d0f559fb3
commit 9267741a5f
3 changed files with 54 additions and 7 deletions

View file

@ -72,6 +72,13 @@ class PostgresEngine(object):
"""
return True
@property
def supports_tuple_comparison(self):
"""
Do we support comparing tuples, i.e. `(a, b) > (c, d)`?
"""
return True
def is_deadlock(self, error):
if isinstance(error, self.module.DatabaseError):
# https://www.postgresql.org/docs/current/static/errcodes-appendix.html