summaryrefslogtreecommitdiff
path: root/sql/pg.sql
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-03-28 20:33:57 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-03-28 20:33:57 +0300
commite5815553cbaa0a2ca829a6b7fdb799ee820fa967 (patch)
tree7ff3b0408ba05f9c14cd842578aa81f27b1de8cf /sql/pg.sql
parentAdd Redis as router RAM backend (diff)
Add SQL as mod_bosh RAM backend
Diffstat (limited to 'sql/pg.sql')
-rw-r--r--sql/pg.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/pg.sql b/sql/pg.sql
index fac806e8..8a8b77b1 100644
--- a/sql/pg.sql
+++ b/sql/pg.sql
@@ -350,3 +350,11 @@ CREATE TABLE route (
CREATE UNIQUE INDEX i_route ON route USING btree (domain, server_host, node, pid);
CREATE INDEX i_route_domain ON route USING btree (domain);
+
+CREATE TABLE bosh (
+ sid text NOT NULL,
+ node text NOT NULL,
+ pid text NOT NULL
+);
+
+CREATE UNIQUE INDEX i_bosh_sid ON bosh USING btree (sid);