mirror of https://github.com/citusdata/citus.git
Some changes
parent
a7e5f77183
commit
3155cba420
|
@ -5,6 +5,7 @@ CREATE SCHEMA drop_fkey_cascade;
|
||||||
SET search_path TO drop_fkey_cascade;
|
SET search_path TO drop_fkey_cascade;
|
||||||
SET client_min_messages TO WARNING;
|
SET client_min_messages TO WARNING;
|
||||||
SET citus.next_shard_id TO 1810000;
|
SET citus.next_shard_id TO 1810000;
|
||||||
|
SET citus.next_placement_id TO 3070000;
|
||||||
SELECT 1 FROM master_add_node('localhost', :master_port, groupId => 0);
|
SELECT 1 FROM master_add_node('localhost', :master_port, groupId => 0);
|
||||||
?column?
|
?column?
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
\set VERBOSITY terse
|
\set VERBOSITY terse
|
||||||
SET citus.next_shard_id TO 1800000;
|
SET citus.next_shard_id TO 1800000;
|
||||||
|
SET citus.next_placement_id TO 8500000;
|
||||||
SET citus.shard_replication_factor TO 1;
|
SET citus.shard_replication_factor TO 1;
|
||||||
CREATE SCHEMA create_ref_dist_from_citus_local;
|
CREATE SCHEMA create_ref_dist_from_citus_local;
|
||||||
SET search_path TO create_ref_dist_from_citus_local;
|
SET search_path TO create_ref_dist_from_citus_local;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
\set VERBOSITY terse
|
\set VERBOSITY terse
|
||||||
SET citus.next_shard_id TO 1518000;
|
SET citus.next_shard_id TO 1518000;
|
||||||
|
SET citus.next_placement_id TO 4090000;
|
||||||
SET citus.shard_replication_factor TO 1;
|
SET citus.shard_replication_factor TO 1;
|
||||||
CREATE SCHEMA fkeys_between_local_ref;
|
CREATE SCHEMA fkeys_between_local_ref;
|
||||||
SET search_path TO fkeys_between_local_ref;
|
SET search_path TO fkeys_between_local_ref;
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
-- (shouldHaveShards = on) and having reference table placements in it.
|
-- (shouldHaveShards = on) and having reference table placements in it.
|
||||||
\set VERBOSITY terse
|
\set VERBOSITY terse
|
||||||
SET citus.next_shard_id TO 1500000;
|
SET citus.next_shard_id TO 1500000;
|
||||||
|
SET citus.next_placement_id TO 8300000;
|
||||||
SET citus.shard_replication_factor TO 1;
|
SET citus.shard_replication_factor TO 1;
|
||||||
SET citus.enable_local_execution TO ON;
|
SET citus.enable_local_execution TO ON;
|
||||||
SET citus.shard_COUNT TO 32;
|
SET citus.shard_COUNT TO 32;
|
||||||
|
|
|
@ -8,6 +8,13 @@ SET citus.next_shard_id TO 910000;
|
||||||
SET citus.shard_replication_factor TO 1;
|
SET citus.shard_replication_factor TO 1;
|
||||||
CREATE SCHEMA fix_idx_names;
|
CREATE SCHEMA fix_idx_names;
|
||||||
SET search_path TO fix_idx_names, public;
|
SET search_path TO fix_idx_names, public;
|
||||||
|
SELECT stop_metadata_sync_to_node('localhost', :worker_1_port);
|
||||||
|
NOTICE: dropping metadata on the node (localhost,57637)
|
||||||
|
stop_metadata_sync_to_node
|
||||||
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
(1 row)
|
||||||
|
|
||||||
-- NULL input should automatically return NULL since
|
-- NULL input should automatically return NULL since
|
||||||
-- fix_partition_shard_index_names is strict
|
-- fix_partition_shard_index_names is strict
|
||||||
-- same for worker_fix_partition_shard_index_names
|
-- same for worker_fix_partition_shard_index_names
|
||||||
|
@ -231,13 +238,6 @@ SELECT tablename, indexname FROM pg_indexes WHERE schemaname = 'fix_idx_names' O
|
||||||
|
|
||||||
\c - - - :master_port
|
\c - - - :master_port
|
||||||
SET search_path TO fix_idx_names, public;
|
SET search_path TO fix_idx_names, public;
|
||||||
SELECT stop_metadata_sync_to_node('localhost', :worker_1_port);
|
|
||||||
NOTICE: dropping metadata on the node (localhost,57637)
|
|
||||||
stop_metadata_sync_to_node
|
|
||||||
---------------------------------------------------------------------
|
|
||||||
|
|
||||||
(1 row)
|
|
||||||
|
|
||||||
DROP INDEX short;
|
DROP INDEX short;
|
||||||
DROP TABLE yet_another_partition_table, another_partition_table_with_very_long_name;
|
DROP TABLE yet_another_partition_table, another_partition_table_with_very_long_name;
|
||||||
-- this will create constraint1 index on parent
|
-- this will create constraint1 index on parent
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
--
|
--
|
||||||
-- Tests that check the metadata returned by the master node.
|
-- Tests that check the metadata returned by the master node.
|
||||||
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 1410000;
|
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 1410000;
|
||||||
|
ALTER SEQUENCE pg_catalog.pg_dist_placement_placementid_seq RESTART 4230000;
|
||||||
SET citus.shard_count TO 4;
|
SET citus.shard_count TO 4;
|
||||||
SET client_min_messages TO WARNING;
|
SET client_min_messages TO WARNING;
|
||||||
-- test DROP TABLE(ergo citus_drop_all_shards) in transaction, then ROLLBACK
|
-- test DROP TABLE(ergo citus_drop_all_shards) in transaction, then ROLLBACK
|
||||||
|
|
|
@ -31,7 +31,7 @@ ORDER BY c.relname, a.attnum;
|
||||||
\c - - - :worker_1_port
|
\c - - - :worker_1_port
|
||||||
SELECT c.relname, a.attstattarget
|
SELECT c.relname, a.attstattarget
|
||||||
FROM pg_attribute a
|
FROM pg_attribute a
|
||||||
JOIN pg_class c ON a.attrelid = c.oid AND c.relname LIKE 'test\_idx%\_\d%'
|
JOIN pg_class c ON a.attrelid = c.oid AND c.relname SIMILAR TO 'test\_idx%\_\d%'
|
||||||
ORDER BY c.relname, a.attnum;
|
ORDER BY c.relname, a.attnum;
|
||||||
\c - - - :master_port
|
\c - - - :master_port
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ CREATE SCHEMA drop_fkey_cascade;
|
||||||
SET search_path TO drop_fkey_cascade;
|
SET search_path TO drop_fkey_cascade;
|
||||||
SET client_min_messages TO WARNING;
|
SET client_min_messages TO WARNING;
|
||||||
SET citus.next_shard_id TO 1810000;
|
SET citus.next_shard_id TO 1810000;
|
||||||
|
SET citus.next_placement_id TO 3070000;
|
||||||
|
|
||||||
SELECT 1 FROM master_add_node('localhost', :master_port, groupId => 0);
|
SELECT 1 FROM master_add_node('localhost', :master_port, groupId => 0);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
\set VERBOSITY terse
|
\set VERBOSITY terse
|
||||||
|
|
||||||
SET citus.next_shard_id TO 1800000;
|
SET citus.next_shard_id TO 1800000;
|
||||||
|
SET citus.next_placement_id TO 8500000;
|
||||||
SET citus.shard_replication_factor TO 1;
|
SET citus.shard_replication_factor TO 1;
|
||||||
|
|
||||||
CREATE SCHEMA create_ref_dist_from_citus_local;
|
CREATE SCHEMA create_ref_dist_from_citus_local;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
\set VERBOSITY terse
|
\set VERBOSITY terse
|
||||||
|
|
||||||
SET citus.next_shard_id TO 1518000;
|
SET citus.next_shard_id TO 1518000;
|
||||||
|
SET citus.next_placement_id TO 4090000;
|
||||||
SET citus.shard_replication_factor TO 1;
|
SET citus.shard_replication_factor TO 1;
|
||||||
|
|
||||||
CREATE SCHEMA fkeys_between_local_ref;
|
CREATE SCHEMA fkeys_between_local_ref;
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
\set VERBOSITY terse
|
\set VERBOSITY terse
|
||||||
|
|
||||||
SET citus.next_shard_id TO 1500000;
|
SET citus.next_shard_id TO 1500000;
|
||||||
|
SET citus.next_placement_id TO 8300000;
|
||||||
SET citus.shard_replication_factor TO 1;
|
SET citus.shard_replication_factor TO 1;
|
||||||
SET citus.enable_local_execution TO ON;
|
SET citus.enable_local_execution TO ON;
|
||||||
SET citus.shard_COUNT TO 32;
|
SET citus.shard_COUNT TO 32;
|
||||||
|
|
|
@ -9,6 +9,8 @@ SET citus.shard_replication_factor TO 1;
|
||||||
CREATE SCHEMA fix_idx_names;
|
CREATE SCHEMA fix_idx_names;
|
||||||
SET search_path TO fix_idx_names, public;
|
SET search_path TO fix_idx_names, public;
|
||||||
|
|
||||||
|
SELECT stop_metadata_sync_to_node('localhost', :worker_1_port);
|
||||||
|
|
||||||
-- NULL input should automatically return NULL since
|
-- NULL input should automatically return NULL since
|
||||||
-- fix_partition_shard_index_names is strict
|
-- fix_partition_shard_index_names is strict
|
||||||
-- same for worker_fix_partition_shard_index_names
|
-- same for worker_fix_partition_shard_index_names
|
||||||
|
@ -107,7 +109,6 @@ SELECT tablename, indexname FROM pg_indexes WHERE schemaname = 'fix_idx_names' O
|
||||||
|
|
||||||
\c - - - :master_port
|
\c - - - :master_port
|
||||||
SET search_path TO fix_idx_names, public;
|
SET search_path TO fix_idx_names, public;
|
||||||
SELECT stop_metadata_sync_to_node('localhost', :worker_1_port);
|
|
||||||
|
|
||||||
DROP INDEX short;
|
DROP INDEX short;
|
||||||
DROP TABLE yet_another_partition_table, another_partition_table_with_very_long_name;
|
DROP TABLE yet_another_partition_table, another_partition_table_with_very_long_name;
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
|
|
||||||
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 1410000;
|
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 1410000;
|
||||||
|
ALTER SEQUENCE pg_catalog.pg_dist_placement_placementid_seq RESTART 4230000;
|
||||||
|
|
||||||
SET citus.shard_count TO 4;
|
SET citus.shard_count TO 4;
|
||||||
SET client_min_messages TO WARNING;
|
SET client_min_messages TO WARNING;
|
||||||
|
|
Loading…
Reference in New Issue