summary refs log tree commit diff
path: root/synapse/storage/engines/postgres.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-10-01 10:17:24 +0100
committerErik Johnston <erik@matrix.org>2019-10-01 10:17:24 +0100
commit1d349fb159f4e5e6c4c593a83571d0da83f67101 (patch)
treef0a2bd387b5f45fd37bdda1abdf878a92636d3be /synapse/storage/engines/postgres.py
parentDrop unused tables (#6115) (diff)
parentNewsfile (diff)
downloadsynapse-1d349fb159f4e5e6c4c593a83571d0da83f67101.tar.xz
Merge branch 'erikj/fixup_devices_last_seen_query' of github.com:matrix-org/synapse into develop
Diffstat (limited to 'synapse/storage/engines/postgres.py')
-rw-r--r--synapse/storage/engines/postgres.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/storage/engines/postgres.py b/synapse/storage/engines/postgres.py
index 289b6bc281..601617b21e 100644
--- a/synapse/storage/engines/postgres.py
+++ b/synapse/storage/engines/postgres.py
@@ -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