mirror of https://github.com/citusdata/citus.git
test
parent
059fe913a8
commit
0b8d0543c2
|
@ -1,4 +1,5 @@
|
|||
CREATE SCHEMA background_rebalance;
|
||||
|
||||
SET search_path TO background_rebalance;
|
||||
SET citus.next_shard_id TO 85674000;
|
||||
SET citus.shard_replication_factor TO 1;
|
||||
|
|
|
@ -17,6 +17,7 @@ SELECT pg_reload_conf();
|
|||
PRIMARY KEY (measureid, eventdatetime, measure_data))
|
||||
PARTITION BY RANGE(eventdatetime);
|
||||
|
||||
|
||||
-- Table access method is specified on child tables
|
||||
CREATE TABLE sensorscolumnar(
|
||||
measureid integer,
|
||||
|
|
|
@ -24,6 +24,7 @@ SELECT pg_reload_conf();
|
|||
CREATE ROLE test_shard_split_role WITH LOGIN;
|
||||
GRANT USAGE, CREATE ON SCHEMA "citus_split_test_schema" TO test_shard_split_role;
|
||||
SET ROLE test_shard_split_role;
|
||||
|
||||
SET search_path TO "citus_split_test_schema";
|
||||
SET citus.next_shard_id TO 8981000;
|
||||
SET citus.next_placement_id TO 8610000;
|
||||
|
|
|
@ -22,6 +22,7 @@ GRANT ALL ON SCHEMA cpu_priority to cpu_priority_user2;
|
|||
GRANT ALL ON SCHEMA cpu_priority to cpu_priority_user3;
|
||||
GRANT ALL ON SCHEMA cpu_priority to cpu_priority_user_background;
|
||||
|
||||
|
||||
CREATE TABLE t1(a int);
|
||||
CREATE TABLE t2(a int);
|
||||
CREATE TABLE t3(a int);
|
||||
|
|
|
@ -15,6 +15,7 @@ SELECT pg_backend_pid() as pid \gset
|
|||
SELECT citus.mitmproxy('conn.allow()');
|
||||
|
||||
CREATE TABLE t(id int PRIMARY KEY, int_data int, data text);
|
||||
|
||||
CREATE INDEX index_failure ON t(id);
|
||||
SELECT create_distributed_table('t', 'id');
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ SELECT pg_reload_conf();
|
|||
|
||||
-- Connections on the proxy port(worker_2) are monitored
|
||||
SELECT nodeid AS worker_1_node FROM pg_dist_node WHERE nodeport=:worker_1_port \gset
|
||||
|
||||
SELECT nodeid AS worker_2_node FROM pg_dist_node WHERE nodeport=:worker_2_proxy_port \gset
|
||||
|
||||
CREATE TABLE table_to_split(id int PRIMARY KEY, int_data int, data text);
|
||||
|
|
|
@ -1345,6 +1345,7 @@ FROM pg_dist_shard
|
|||
JOIN pg_dist_shard_placement USING (shardid)
|
||||
WHERE logicalrelid = 'r1'::regclass;
|
||||
|
||||
|
||||
-- cleanup tables
|
||||
DROP TABLE r1;
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ CREATE USER full_access_single_node;
|
|||
CREATE USER read_access_single_node;
|
||||
CREATE USER no_access_single_node;
|
||||
|
||||
|
||||
CREATE TYPE new_type AS (n int, m text);
|
||||
CREATE TABLE test(x int, y int, z new_type);
|
||||
SELECT create_distributed_table('test','x');
|
||||
|
|
Loading…
Reference in New Issue