summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/state.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 26ecad5907..382f308a60 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -324,6 +324,7 @@ class StateStore(SQLBaseStore):
                 )
                 SELECT type, state_key, last_value(event_id) OVER (
                     PARTITION BY type, state_key ORDER BY state_group ASC
+                    ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
                 ) AS event_id FROM state_groups_state
                 WHERE state_group IN (
                     SELECT state_group FROM state