ozan-test-3
Halil Ozan Akgul 2021-12-24 11:52:47 +03:00
parent bbe13e1faa
commit 46dd428a95
1 changed files with 3 additions and 3 deletions

View File

@ -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;