mirror of https://github.com/citusdata/citus.git
dnm1
parent
bbe13e1faa
commit
46dd428a95
|
@ -48,6 +48,9 @@ SELECT * FROM seq_test_0_local_table ORDER BY 1, 2 LIMIT 5;
|
|||
\d seq_0_local_table
|
||||
-- cannot alter a sequence used in a distributed table
|
||||
-- since the metadata is synced to workers
|
||||
BEGIN;
|
||||
SELECT stop_metadata_sync_to_node('localhost', :worker_1_port);
|
||||
SELECT stop_metadata_sync_to_node('localhost', :worker_2_port);
|
||||
ALTER SEQUENCE seq_0 AS bigint;
|
||||
ALTER SEQUENCE seq_0_local_table AS bigint;
|
||||
ALTER SEQUENCE seq_0 INCREMENT BY 2;
|
||||
|
@ -56,9 +59,6 @@ ALTER SEQUENCE seq_0_local_table INCREMENT BY 2;
|
|||
\d seq_0_local_table
|
||||
|
||||
|
||||
BEGIN;
|
||||
SELECT stop_metadata_sync_to_node('localhost', :worker_1_port);
|
||||
SELECT stop_metadata_sync_to_node('localhost', :worker_2_port);
|
||||
-- check that we can add serial pseudo-type columns
|
||||
-- when metadata is not synced to workers
|
||||
TRUNCATE seq_test_0;
|
||||
|
|
Loading…
Reference in New Issue