aboutsummaryrefslogtreecommitdiff
path: root/sql/pg.sql
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2017-10-27 15:20:29 +0300
committerAlexey Shchepin <alexey@process-one.net>2017-10-27 15:20:29 +0300
commite1c8e88d87b5e1fbfeb24c9d5d06336274afde6e (patch)
tree5ede7e4bcec247a43e92e9c86c0c9dc42f7f18c7 /sql/pg.sql
parentFix typespec (diff)
Update SQL archive index to match mysql.sql
Diffstat (limited to 'sql/pg.sql')
-rw-r--r--sql/pg.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/pg.sql b/sql/pg.sql
index e26b1111f..db46111f5 100644
--- a/sql/pg.sql
+++ b/sql/pg.sql
@@ -101,7 +101,7 @@ CREATE TABLE archive (
created_at TIMESTAMP NOT NULL DEFAULT now()
);
-CREATE INDEX i_username ON archive USING btree (username);
+CREATE INDEX i_username_timestamp ON archive USING btree (username, timestamp);
CREATE INDEX i_timestamp ON archive USING btree (timestamp);
CREATE INDEX i_peer ON archive USING btree (peer);
CREATE INDEX i_bare_peer ON archive USING btree (bare_peer);