diff options
author | Alexey Shchepin <alexey@process-one.net> | 2017-10-27 15:20:29 +0300 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2017-10-27 15:20:29 +0300 |
commit | e1c8e88d87b5e1fbfeb24c9d5d06336274afde6e (patch) | |
tree | 5ede7e4bcec247a43e92e9c86c0c9dc42f7f18c7 /sql/pg.sql | |
parent | Fix typespec (diff) |
Update SQL archive index to match mysql.sql
Diffstat (limited to 'sql/pg.sql')
-rw-r--r-- | sql/pg.sql | 2 |
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); |