Document failing downgrades from 10.2-4 to 10.2-2

(cherry picked from commit 5ddd4754a2)
pull/6411/head
Hanefi Onaldi 2022-09-28 18:52:24 +03:00
parent 8a1c0ae821
commit d2181aec7f
No known key found for this signature in database
GPG Key ID: F18CDB10BA0DFDC7
2 changed files with 19 additions and 0 deletions

View File

@ -909,6 +909,19 @@ SELECT * FROM multi_extension.print_extension_changes();
| function worker_fix_partition_shard_index_names(regclass,text,text) void
(4 rows)
-- There was a bug when downgrading to 10.2-2 from 10.2-4
-- Test that we do not have any issues with this particular downgrade
ALTER EXTENSION citus UPDATE TO '10.2-2';
ERROR: cannot drop constraint stripe_first_row_number_idx on table columnar.stripe because other objects depend on it
DETAIL: access method columnar depends on index columnar.stripe_first_row_number_idx
HINT: Use DROP ... CASCADE to drop the dependent objects too.
ALTER EXTENSION citus UPDATE TO '10.2-4';
NOTICE: version "10.2-4" of extension "citus" is already installed
SELECT * FROM multi_extension.print_extension_changes();
previous_object | current_object
---------------------------------------------------------------------
(0 rows)
-- Test downgrade to 10.2-4 from 10.2-5
ALTER EXTENSION citus UPDATE TO '10.2-5';
ALTER EXTENSION citus UPDATE TO '10.2-4';

View File

@ -400,6 +400,12 @@ SELECT * FROM multi_extension.print_extension_changes();
ALTER EXTENSION citus UPDATE TO '10.2-4';
SELECT * FROM multi_extension.print_extension_changes();
-- There was a bug when downgrading to 10.2-2 from 10.2-4
-- Test that we do not have any issues with this particular downgrade
ALTER EXTENSION citus UPDATE TO '10.2-2';
ALTER EXTENSION citus UPDATE TO '10.2-4';
SELECT * FROM multi_extension.print_extension_changes();
-- Test downgrade to 10.2-4 from 10.2-5
ALTER EXTENSION citus UPDATE TO '10.2-5';
ALTER EXTENSION citus UPDATE TO '10.2-4';