mirror of https://github.com/citusdata/citus.git
Add upgrade and dowgrade tests for Citus 10.2 (#5120)
It seems we forgot to add this when starting 10.2 development.pull/5114/head
parent
644052ea58
commit
adf17a8cf1
|
@ -629,6 +629,30 @@ SELECT * FROM multi_extension.print_extension_changes();
|
||||||
| function worker_partitioned_table_size(regclass) bigint
|
| function worker_partitioned_table_size(regclass) bigint
|
||||||
(15 rows)
|
(15 rows)
|
||||||
|
|
||||||
|
-- Test downgrade to 10.1-1 from 10.2-1
|
||||||
|
ALTER EXTENSION citus UPDATE TO '10.2-1';
|
||||||
|
ALTER EXTENSION citus UPDATE TO '10.1-1';
|
||||||
|
-- Should be empty result since upgrade+downgrade should be a no-op
|
||||||
|
SELECT * FROM multi_extension.print_extension_changes();
|
||||||
|
previous_object | current_object
|
||||||
|
---------------------------------------------------------------------
|
||||||
|
(0 rows)
|
||||||
|
|
||||||
|
-- Snapshot of state at 10.2-1
|
||||||
|
ALTER EXTENSION citus UPDATE TO '10.2-1';
|
||||||
|
SELECT * FROM multi_extension.print_extension_changes();
|
||||||
|
previous_object | current_object
|
||||||
|
---------------------------------------------------------------------
|
||||||
|
function stop_metadata_sync_to_node(text,integer) void |
|
||||||
|
| function citus_internal.downgrade_columnar_storage(regclass) void
|
||||||
|
| function citus_internal.upgrade_columnar_storage(regclass) void
|
||||||
|
| function citus_internal_add_partition_metadata(regclass,"char",text,integer,"char") void
|
||||||
|
| function citus_internal_add_placement_metadata(bigint,integer,bigint,integer,bigint) void
|
||||||
|
| function citus_internal_add_shard_metadata(regclass,bigint,"char",text,text) void
|
||||||
|
| function citus_internal_update_placement_metadata(bigint,integer,integer) void
|
||||||
|
| function stop_metadata_sync_to_node(text,integer,boolean) void
|
||||||
|
(8 rows)
|
||||||
|
|
||||||
DROP TABLE multi_extension.prev_objects, multi_extension.extension_diff;
|
DROP TABLE multi_extension.prev_objects, multi_extension.extension_diff;
|
||||||
-- show running version
|
-- show running version
|
||||||
SHOW citus.version;
|
SHOW citus.version;
|
||||||
|
|
|
@ -259,6 +259,16 @@ SELECT * FROM multi_extension.print_extension_changes();
|
||||||
ALTER EXTENSION citus UPDATE TO '10.1-1';
|
ALTER EXTENSION citus UPDATE TO '10.1-1';
|
||||||
SELECT * FROM multi_extension.print_extension_changes();
|
SELECT * FROM multi_extension.print_extension_changes();
|
||||||
|
|
||||||
|
-- Test downgrade to 10.1-1 from 10.2-1
|
||||||
|
ALTER EXTENSION citus UPDATE TO '10.2-1';
|
||||||
|
ALTER EXTENSION citus UPDATE TO '10.1-1';
|
||||||
|
-- Should be empty result since upgrade+downgrade should be a no-op
|
||||||
|
SELECT * FROM multi_extension.print_extension_changes();
|
||||||
|
|
||||||
|
-- Snapshot of state at 10.2-1
|
||||||
|
ALTER EXTENSION citus UPDATE TO '10.2-1';
|
||||||
|
SELECT * FROM multi_extension.print_extension_changes();
|
||||||
|
|
||||||
DROP TABLE multi_extension.prev_objects, multi_extension.extension_diff;
|
DROP TABLE multi_extension.prev_objects, multi_extension.extension_diff;
|
||||||
|
|
||||||
-- show running version
|
-- show running version
|
||||||
|
|
Loading…
Reference in New Issue