|
|
|
@ -37,8 +37,8 @@ SELECT * FROM pg_dist_shard;
|
|
|
|
|
table_to_split | 1 | t | -2147483648 | 2147483647
|
|
|
|
|
(1 row)
|
|
|
|
|
|
|
|
|
|
SET client_min_messages TO LOG;
|
|
|
|
|
SET citus.log_remote_commands TO on;
|
|
|
|
|
--SET client_min_messages TO LOG;
|
|
|
|
|
--SET citus.log_remote_commands TO on;
|
|
|
|
|
CREATE OR REPLACE VIEW show_catalog AS SELECT n.nspname as "Schema",
|
|
|
|
|
c.relname as "Name",
|
|
|
|
|
pg_catalog.pg_get_userbyid(c.relowner) as "Owner"
|
|
|
|
@ -50,49 +50,9 @@ WHERE c.relkind IN ('r','p','')
|
|
|
|
|
AND n.nspname <> 'information_schema'
|
|
|
|
|
AND pg_catalog.pg_table_is_visible(c.oid)
|
|
|
|
|
ORDER BY 1,2;
|
|
|
|
|
NOTICE: issuing BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(xx, xx, 'xxxxxxx');
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(xx, xx, 'xxxxxxx');
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SET citus.enable_ddl_propagation TO 'off'
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SET citus.enable_ddl_propagation TO 'off'
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SET search_path TO citus_split_shard_by_split_points_negative;
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SET search_path TO citus_split_shard_by_split_points_negative;
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing CREATE OR REPLACE VIEW citus_split_shard_by_split_points_negative.show_catalog ("Schema","Name","Owner") AS SELECT n.nspname AS "Schema",
|
|
|
|
|
c.relname AS "Name",
|
|
|
|
|
pg_get_userbyid(c.relowner) AS "Owner"
|
|
|
|
|
FROM (pg_class c
|
|
|
|
|
LEFT JOIN pg_namespace n ON ((n.oid = c.relnamespace)))
|
|
|
|
|
WHERE ((c.relkind = ANY (ARRAY['r'::"char", 'p'::"char", ''::"char"])) AND (n.nspname <> 'pg_catalog'::name) AND (n.nspname !~ '^pg_toast'::text) AND (n.nspname <> 'information_schema'::name) AND pg_table_is_visible(c.oid))
|
|
|
|
|
ORDER BY n.nspname, c.relname;
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing CREATE OR REPLACE VIEW citus_split_shard_by_split_points_negative.show_catalog ("Schema","Name","Owner") AS SELECT n.nspname AS "Schema",
|
|
|
|
|
c.relname AS "Name",
|
|
|
|
|
pg_get_userbyid(c.relowner) AS "Owner"
|
|
|
|
|
FROM (pg_class c
|
|
|
|
|
LEFT JOIN pg_namespace n ON ((n.oid = c.relnamespace)))
|
|
|
|
|
WHERE ((c.relkind = ANY (ARRAY['r'::"char", 'p'::"char", ''::"char"])) AND (n.nspname <> 'pg_catalog'::name) AND (n.nspname !~ '^pg_toast'::text) AND (n.nspname <> 'information_schema'::name) AND pg_table_is_visible(c.oid))
|
|
|
|
|
ORDER BY n.nspname, c.relname;
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing WITH distributed_object_data(typetext, objnames, objargs, distargumentindex, colocationid, force_delegation) AS (VALUES ('view', ARRAY['citus_split_shard_by_split_points_negative', 'show_catalog']::text[], ARRAY[]::text[], -1, 0, false)) SELECT citus_internal_add_object_metadata(typetext, objnames, objargs, distargumentindex::int, colocationid::int, force_delegation::bool) FROM distributed_object_data;
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing WITH distributed_object_data(typetext, objnames, objargs, distargumentindex, colocationid, force_delegation) AS (VALUES ('view', ARRAY['citus_split_shard_by_split_points_negative', 'show_catalog']::text[], ARRAY[]::text[], -1, 0, false)) SELECT citus_internal_add_object_metadata(typetext, objnames, objargs, distargumentindex::int, colocationid::int, force_delegation::bool) FROM distributed_object_data;
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing PREPARE TRANSACTION 'citus_xx_xx_xx_xx'
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing PREPARE TRANSACTION 'citus_xx_xx_xx_xx'
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing COMMIT PREPARED 'citus_xx_xx_xx_xx'
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing COMMIT PREPARED 'citus_xx_xx_xx_xx'
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
-- UDF fails for range partitioned tables.
|
|
|
|
|
\c - - - :master_port
|
|
|
|
|
SET citus.log_remote_commands TO on;
|
|
|
|
|
--SET citus.log_remote_commands TO on;
|
|
|
|
|
SET citus.next_shard_id TO 100;
|
|
|
|
|
SET search_path TO citus_split_shard_by_split_points_negative;
|
|
|
|
|
SELECT nodeid AS worker_1_node FROM pg_dist_node WHERE nodeport=:worker_1_port \gset
|
|
|
|
@ -100,138 +60,12 @@ SELECT nodeid AS worker_2_node FROM pg_dist_node WHERE nodeport=:worker_2_port \
|
|
|
|
|
SELECT citus_split_shard_by_split_points(
|
|
|
|
|
1,
|
|
|
|
|
ARRAY['0'],
|
|
|
|
|
ARRAY[:worker_2_node, :worker_2_node],
|
|
|
|
|
ARRAY[:worker_1_node, :worker_2_node],
|
|
|
|
|
'force_logical');
|
|
|
|
|
NOTICE: issuing BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(xx, xx, 'xxxxxxx');
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT worker_apply_shard_ddl_command (100, 'CREATE TABLE citus_split_shard_by_split_points_negative.table_to_split (id bigint NOT NULL, value character(1)) ')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT worker_apply_shard_ddl_command (100, 'ALTER TABLE citus_split_shard_by_split_points_negative.table_to_split OWNER TO postgres')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing COMMIT
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(xx, xx, 'xxxxxxx');
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT worker_apply_shard_ddl_command (101, 'CREATE TABLE citus_split_shard_by_split_points_negative.table_to_split (id bigint NOT NULL, value character(1)) ')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT worker_apply_shard_ddl_command (101, 'ALTER TABLE citus_split_shard_by_split_points_negative.table_to_split OWNER TO postgres')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing COMMIT
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(xx, xx, 'xxxxxxx');
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT worker_apply_shard_ddl_command (1, 'CREATE TABLE citus_split_shard_by_split_points_negative.table_to_split (id bigint NOT NULL, value character(1)) ')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT worker_apply_shard_ddl_command (1, 'ALTER TABLE citus_split_shard_by_split_points_negative.table_to_split OWNER TO postgres')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing COMMIT
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(xx, xx, 'xxxxxxx');
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT worker_apply_shard_ddl_command (100, 'CREATE TABLE citus_split_shard_by_split_points_negative.table_to_split (id bigint NOT NULL, value character(1)) ')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT worker_apply_shard_ddl_command (100, 'ALTER TABLE citus_split_shard_by_split_points_negative.table_to_split OWNER TO postgres')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing COMMIT
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(xx, xx, 'xxxxxxx');
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT worker_apply_shard_ddl_command (101, 'CREATE TABLE citus_split_shard_by_split_points_negative.table_to_split (id bigint NOT NULL, value character(1)) ')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT worker_apply_shard_ddl_command (101, 'ALTER TABLE citus_split_shard_by_split_points_negative.table_to_split OWNER TO postgres')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing COMMIT
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT subname FROM pg_subscription WHERE subname LIKE 'citus_shard_split_subscription_' || '%'
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT rolname FROM pg_roles WHERE rolname LIKE 'citus_shard_split_subscription_role_' || '%'
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT pubname FROM pg_publication WHERE pubname LIKE 'citus_shard_split_publication_' || '%'
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing CREATE PUBLICATION citus_shard_split_publication_18_10 FOR TABLE citus_split_shard_by_split_points_negative.table_to_split_100,citus_split_shard_by_split_points_negative.table_to_split_1,citus_split_shard_by_split_points_negative.table_to_split_101
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT * FROM worker_split_shard_replication_setup(ARRAY[ROW(1, 100, '-2147483648', '0', 18)::citus.split_shard_info,ROW(1, 101, '1', '2147483647', 18)::citus.split_shard_info]);
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(xx, xx, 'xxxxxxx');
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SET LOCAL citus.enable_ddl_propagation TO OFF;
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing CREATE USER citus_shard_split_subscription_role_10 SUPERUSER IN ROLE postgres
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing COMMIT
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing CREATE SUBSCRIPTION citus_shard_split_subscription_10 CONNECTION 'host=''localhost'' port=xxxxx user=''postgres'' dbname=''regression'' connect_timeout=20' PUBLICATION citus_shard_split_publication_18_10 WITH (citus_use_authinfo=true, enabled=false)
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing ALTER SUBSCRIPTION citus_shard_split_subscription_10 OWNER TO citus_shard_split_subscription_role_10
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(xx, xx, 'xxxxxxx');
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SET LOCAL citus.enable_ddl_propagation TO OFF;
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing ALTER ROLE citus_shard_split_subscription_role_10 NOSUPERUSER
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing COMMIT
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing ALTER SUBSCRIPTION citus_shard_split_subscription_10 ENABLE
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT count(*) FROM pg_subscription_rel, pg_stat_subscription WHERE srsubid = subid AND srsubstate != 'r' AND subname IN ('citus_shard_split_subscription_10')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT sum(pg_total_relation_size(srrelid)) FROM pg_subscription_rel, pg_stat_subscription WHERE srsubid = subid AND subname IN ('citus_shard_split_subscription_10')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT count(*) FROM pg_subscription_rel, pg_stat_subscription WHERE srsubid = subid AND srsubstate != 'r' AND subname IN ('citus_shard_split_subscription_10')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT pg_current_wal_lsn()
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT min(latest_end_lsn) FROM pg_stat_subscription WHERE subname IN ('citus_shard_split_subscription_10')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT worker_apply_shard_ddl_command (100, 'ALTER TABLE citus_split_shard_by_split_points_negative.table_to_split ADD CONSTRAINT table_to_split_pkey PRIMARY KEY (id)')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT worker_apply_shard_ddl_command (101, 'ALTER TABLE citus_split_shard_by_split_points_negative.table_to_split ADD CONSTRAINT table_to_split_pkey PRIMARY KEY (id)')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT pg_current_wal_lsn()
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT min(latest_end_lsn) FROM pg_stat_subscription WHERE subname IN ('citus_shard_split_subscription_10')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(xx, xx, 'xxxxxxx');
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(xx, xx, 'xxxxxxx');
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT lock_shard_metadata(7, ARRAY[1])
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT lock_shard_metadata(7, ARRAY[1])
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT pg_current_wal_lsn()
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT min(latest_end_lsn) FROM pg_stat_subscription WHERE subname IN ('citus_shard_split_subscription_10')
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT citus_internal_delete_shard_metadata(1);
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing SELECT citus_internal_delete_shard_metadata(1);
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing DROP TABLE IF EXISTS citus_split_shard_by_split_points_negative.table_to_split_1 CASCADE
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing WITH shard_data(relationname, shardid, storagetype, shardminvalue, shardmaxvalue) AS (VALUES ('citus_split_shard_by_split_points_negative.table_to_split'::regclass, 100, 't'::"char", '-2147483648', '0'), ('citus_split_shard_by_split_points_negative.table_to_split'::regclass, 101, 't'::"char", '1', '2147483647')) SELECT citus_internal_add_shard_metadata(relationname, shardid, storagetype, shardminvalue, shardmaxvalue) FROM shard_data;
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing WITH shard_data(relationname, shardid, storagetype, shardminvalue, shardmaxvalue) AS (VALUES ('citus_split_shard_by_split_points_negative.table_to_split'::regclass, 100, 't'::"char", '-2147483648', '0'), ('citus_split_shard_by_split_points_negative.table_to_split'::regclass, 101, 't'::"char", '1', '2147483647')) SELECT citus_internal_add_shard_metadata(relationname, shardid, storagetype, shardminvalue, shardmaxvalue) FROM shard_data;
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing WITH placement_data(shardid, shardstate, shardlength, groupid, placementid) AS (VALUES (100, 1, 0, 16, 84), (101, 1, 0, 16, 85)) SELECT citus_internal_add_placement_metadata(shardid, shardstate, shardlength, groupid, placementid) FROM placement_data;
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing WITH placement_data(shardid, shardstate, shardlength, groupid, placementid) AS (VALUES (100, 1, 0, 16, 84), (101, 1, 0, 16, 85)) SELECT citus_internal_add_placement_metadata(shardid, shardstate, shardlength, groupid, placementid) FROM placement_data;
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing DROP TABLE IF EXISTS citus_split_shard_by_split_points_negative.table_to_split_100 CASCADE
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing DROP TABLE IF EXISTS citus_split_shard_by_split_points_negative.table_to_split_101 CASCADE
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing DROP TABLE IF EXISTS citus_split_shard_by_split_points_negative.table_to_split_1 CASCADE
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing PREPARE TRANSACTION 'citus_xx_xx_xx_xx'
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing PREPARE TRANSACTION 'citus_xx_xx_xx_xx'
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing COMMIT PREPARED 'citus_xx_xx_xx_xx'
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
NOTICE: issuing COMMIT PREPARED 'citus_xx_xx_xx_xx'
|
|
|
|
|
DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx
|
|
|
|
|
WARNING: replication slot "citus_split_replicationslot_for_shard_1" does not exist
|
|
|
|
|
CONTEXT: while executing command on localhost:xxxxx
|
|
|
|
|
WARNING: connection claimed exclusively at transaction commit
|
|
|
|
|
WARNING: connection claimed exclusively at transaction commit
|
|
|
|
|
WARNING: connection claimed exclusively at transaction commit
|
|
|
|
|
WARNING: connection claimed exclusively at transaction commit
|
|
|
|
|
citus_split_shard_by_split_points
|
|
|
|
@ -239,46 +73,69 @@ WARNING: connection claimed exclusively at transaction commit
|
|
|
|
|
|
|
|
|
|
(1 row)
|
|
|
|
|
|
|
|
|
|
-- On worker2, we want child shard xxxxx and dummy shard xxxxx --
|
|
|
|
|
-- on worker1, we want child shard xxxxx and 1 and dummy shard xxxxx --
|
|
|
|
|
INSERT INTO table_to_split values(100,'a');
|
|
|
|
|
INSERT INTO table_to_split values(400, 'a');
|
|
|
|
|
INSERT INTO table_to_split values(500, 'a');
|
|
|
|
|
\c - - - :worker_2_port
|
|
|
|
|
SET search_path TO citus_split_shard_by_split_points_negative;
|
|
|
|
|
SELECT * FROM show_catalog;
|
|
|
|
|
Schema | Name | Owner
|
|
|
|
|
---------------------------------------------------------------------
|
|
|
|
|
citus_split_shard_by_split_points_negative | table_to_split | postgres
|
|
|
|
|
citus_split_shard_by_split_points_negative | table_to_split_100 | postgres
|
|
|
|
|
citus_split_shard_by_split_points_negative | table_to_split_101 | postgres
|
|
|
|
|
(3 rows)
|
|
|
|
|
(2 rows)
|
|
|
|
|
|
|
|
|
|
SELECT * FROM pg_subscription;
|
|
|
|
|
oid | subdbid | subname | subowner | subenabled | subbinary | substream | subconninfo | subslotname | subsynccommit | subpublications
|
|
|
|
|
---------------------------------------------------------------------
|
|
|
|
|
17324 | 16384 | citus_shard_split_subscription_10 | 17323 | t | f | f | host='localhost' port=xxxxx user='postgres' dbname='regression' connect_timeout=20 sslmode=prefer | citus_shard_split_subscription_10 | off | {citus_shard_split_publication_18_10}
|
|
|
|
|
17311 | 16384 | citus_shard_split_subscription_10 | 17310 | t | f | f | host='localhost' port=xxxxx user='postgres' dbname='regression' connect_timeout=20 sslmode=prefer | citus_split_18_10 | off | {citus_shard_split_publication_18_10}
|
|
|
|
|
(1 row)
|
|
|
|
|
|
|
|
|
|
SELECT slot_name FROM pg_replication_slots;
|
|
|
|
|
slot_name
|
|
|
|
|
---------------------------------------------------------------------
|
|
|
|
|
(0 rows)
|
|
|
|
|
|
|
|
|
|
SELECT * FROM table_to_split_101;
|
|
|
|
|
id | value
|
|
|
|
|
---------------------------------------------------------------------
|
|
|
|
|
100 | a
|
|
|
|
|
500 | a
|
|
|
|
|
(2 rows)
|
|
|
|
|
|
|
|
|
|
\c - - - :worker_1_port
|
|
|
|
|
SET search_path TO citus_split_shard_by_split_points_negative;
|
|
|
|
|
SELECT * FROM show_catalog;
|
|
|
|
|
Schema | Name | Owner
|
|
|
|
|
---------------------------------------------------------------------
|
|
|
|
|
citus_split_shard_by_split_points_negative | table_to_split | postgres
|
|
|
|
|
(1 row)
|
|
|
|
|
citus_split_shard_by_split_points_negative | table_to_split_100 | postgres
|
|
|
|
|
(2 rows)
|
|
|
|
|
|
|
|
|
|
SELECT * FROM pg_publication;
|
|
|
|
|
oid | pubname | pubowner | puballtables | pubinsert | pubupdate | pubdelete | pubtruncate | pubviaroot
|
|
|
|
|
---------------------------------------------------------------------
|
|
|
|
|
17381 | citus_shard_split_publication_18_10 | 10 | f | t | t | t | t | f
|
|
|
|
|
(1 row)
|
|
|
|
|
17371 | citus_shard_split_publication_16_10 | 10 | f | t | t | t | t | f
|
|
|
|
|
17374 | citus_shard_split_publication_18_10 | 10 | f | t | t | t | t | f
|
|
|
|
|
(2 rows)
|
|
|
|
|
|
|
|
|
|
SELECT * FROM pg_subscription;
|
|
|
|
|
oid | subdbid | subname | subowner | subenabled | subbinary | substream | subconninfo | subslotname | subsynccommit | subpublications
|
|
|
|
|
---------------------------------------------------------------------
|
|
|
|
|
(0 rows)
|
|
|
|
|
17378 | 16384 | citus_shard_split_subscription_10 | 17377 | t | f | f | host='localhost' port=xxxxx user='postgres' dbname='regression' connect_timeout=20 sslmode=prefer | citus_split_16_10 | off | {citus_shard_split_publication_16_10}
|
|
|
|
|
(1 row)
|
|
|
|
|
|
|
|
|
|
SELECT slot_name FROM pg_replication_slots;
|
|
|
|
|
slot_name
|
|
|
|
|
---------------------------------------------------------------------
|
|
|
|
|
citus_shard_split_subscription_10
|
|
|
|
|
citus_split_replicationslot_for_shard_1
|
|
|
|
|
citus_split_16_10
|
|
|
|
|
citus_split_18_10
|
|
|
|
|
(3 rows)
|
|
|
|
|
|
|
|
|
|
SELECT * FROM table_to_split_100;
|
|
|
|
|
id | value
|
|
|
|
|
---------------------------------------------------------------------
|
|
|
|
|
400 | a
|
|
|
|
|
(1 row)
|
|
|
|
|
|
|
|
|
|