diff options
Diffstat (limited to 'sql/pg.sql')
-rw-r--r-- | sql/pg.sql | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/pg.sql b/sql/pg.sql index 733856ede..4cf4f0cbd 100644 --- a/sql/pg.sql +++ b/sql/pg.sql @@ -1,5 +1,5 @@ -- --- ejabberd, Copyright (C) 2002-2021 ProcessOne +-- ejabberd, Copyright (C) 2002-2022 ProcessOne -- -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License as @@ -278,6 +278,7 @@ CREATE TABLE muc_room ( ); CREATE UNIQUE INDEX i_muc_room_name_host ON muc_room USING btree (name, host); +CREATE INDEX i_muc_room_host_created_at ON muc_room USING btree (host, created_at); CREATE TABLE muc_registered ( jid text NOT NULL, |