summary refs log tree commit diff
path: root/synapse/storage/state.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2016-09-12 14:38:40 +0100
committerGitHub <noreply@github.com>2016-09-12 14:38:40 +0100
commit7c679b111887025d1507882ad8ea4b914982a0c2 (patch)
tree56fb03f476f1840bf2ac828862456fc71b62c6f9 /synapse/storage/state.py
parentMerge pull request #1105 from matrix-org/erikj/make_notif_highlight_query_fast (diff)
parentCreate new index concurrently (diff)
downloadsynapse-7c679b111887025d1507882ad8ea4b914982a0c2.tar.xz
Merge pull request #1106 from matrix-org/erikj/state_reindex_concurrent
Create new index concurrently
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r--synapse/storage/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index f98d5d53ee..fdbdade536 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -820,7 +820,7 @@ class StateStore(SQLBaseStore):
         def reindex_txn(txn):
             if isinstance(self.database_engine, PostgresEngine):
                 txn.execute(
-                    "CREATE INDEX state_groups_state_type_idx"
+                    "CREATE INDEX CONCURRENTLY state_groups_state_type_idx"
                     " ON state_groups_state(state_group, type, state_key)"
                 )
                 txn.execute(