SET citus.next_shard_id TO 1601000; SET citus.shard_count TO 1; SET citus.shard_replication_factor TO 1; CREATE TABLE tab9 (test_id integer NOT NULL, data int); CREATE TABLE tab10 (test_id integer NOT NULL, data int); SELECT create_distributed_table('tab9', 'test_id', 'hash'); create_distributed_table -------------------------- (1 row) SELECT master_create_distributed_table('tab10', 'test_id', 'hash'); master_create_distributed_table --------------------------------- (1 row) TRUNCATE tab9; UPDATE pg_dist_shard SET logicalrelid = 'tab10'::regclass WHERE logicalrelid = 'tab9'::regclass; TRUNCATE tab10; ERROR: cached metadata for shard 1601000 is inconsistent HINT: Reconnect and try again. DROP TABLE tab9; DROP TABLE tab10;