]> granicus.if.org Git - ejabberd/commitdiff
pg - added sm table
authorMatthias Rieber <matthias@zu-con.org>
Sun, 17 May 2015 15:45:49 +0000 (17:45 +0200)
committerMatthias Rieber <matthias@zu-con.org>
Sun, 17 May 2015 19:38:33 +0000 (21:38 +0200)
sql/pg.sql

index 8412c3c6b513970aaa8776f97dca51a535b0f613..966614f485806f8511c18f9a37299236a32e247a 100644 (file)
@@ -288,3 +288,18 @@ CREATE TABLE caps_features (
 );
 
 CREATE INDEX i_caps_features_node_subnode ON caps_features USING btree (node, subnode);
+
+CREATE TABLE sm (
+    usec bigint NOT NULL,
+    pid text NOT NULL,
+    node text NOT NULL,
+    username text NOT NULL,
+    resource text NOT NULL,
+    priority text NOT NULL,
+    info text NOT NULL
+);
+
+CREATE UNIQUE INDEX i_sid ON sm USING btree (usec, pid);
+CREATE INDEX i_node ON sm USING btree (node);
+CREATE INDEX i_username ON sm USING btree (username);
+