mirror of https://github.com/citusdata/citus.git
29 lines
843 B
Plaintext
29 lines
843 B
Plaintext
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 1601000;
|
|
CREATE TABLE tab9 (test_id integer NOT NULL, data int);
|
|
CREATE TABLE tab10 (test_id integer NOT NULL, data int);
|
|
SELECT master_create_distributed_table('tab9', 'test_id', 'hash');
|
|
master_create_distributed_table
|
|
---------------------------------
|
|
|
|
(1 row)
|
|
|
|
SELECT master_create_distributed_table('tab10', 'test_id', 'hash');
|
|
master_create_distributed_table
|
|
---------------------------------
|
|
|
|
(1 row)
|
|
|
|
SELECT master_create_worker_shards('tab9', 1, 1);
|
|
master_create_worker_shards
|
|
-----------------------------
|
|
|
|
(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;
|