mirror of https://github.com/citusdata/citus.git
Add tests for version check
parent
8c1bbf1417
commit
aff6a3dcc4
|
@ -169,7 +169,31 @@ SET citus.enable_version_checks TO 'true';
|
||||||
DROP FUNCTION citus_table_size(regclass);
|
DROP FUNCTION citus_table_size(regclass);
|
||||||
SET citus.enable_version_checks TO 'false';
|
SET citus.enable_version_checks TO 'false';
|
||||||
ALTER EXTENSION citus UPDATE TO '6.2-2';
|
ALTER EXTENSION citus UPDATE TO '6.2-2';
|
||||||
|
-- Test updating to the latest version without specifying the version number
|
||||||
|
ALTER EXTENSION citus UPDATE;
|
||||||
-- re-create in newest version
|
-- re-create in newest version
|
||||||
DROP EXTENSION citus;
|
DROP EXTENSION citus;
|
||||||
\c
|
\c
|
||||||
CREATE EXTENSION citus;
|
CREATE EXTENSION citus;
|
||||||
|
-- test cache invalidation in workers
|
||||||
|
\c - - - :worker_1_port
|
||||||
|
-- this will initialize the cache
|
||||||
|
\d
|
||||||
|
List of relations
|
||||||
|
Schema | Name | Type | Owner
|
||||||
|
--------+------+------+-------
|
||||||
|
(0 rows)
|
||||||
|
|
||||||
|
DROP EXTENSION citus;
|
||||||
|
SET citus.enable_version_checks TO 'false';
|
||||||
|
CREATE EXTENSION citus VERSION '5.2-4';
|
||||||
|
SET citus.enable_version_checks TO 'true';
|
||||||
|
-- during ALTER EXTENSION, we should invalidate the cache
|
||||||
|
ALTER EXTENSION citus UPDATE;
|
||||||
|
-- if cache is invalidated succesfull, this \d should work without any problem
|
||||||
|
\d
|
||||||
|
List of relations
|
||||||
|
Schema | Name | Type | Owner
|
||||||
|
--------+------+------+-------
|
||||||
|
(0 rows)
|
||||||
|
|
||||||
|
|
|
@ -153,7 +153,25 @@ DROP FUNCTION citus_table_size(regclass);
|
||||||
SET citus.enable_version_checks TO 'false';
|
SET citus.enable_version_checks TO 'false';
|
||||||
ALTER EXTENSION citus UPDATE TO '6.2-2';
|
ALTER EXTENSION citus UPDATE TO '6.2-2';
|
||||||
|
|
||||||
|
-- Test updating to the latest version without specifying the version number
|
||||||
|
ALTER EXTENSION citus UPDATE;
|
||||||
|
|
||||||
-- re-create in newest version
|
-- re-create in newest version
|
||||||
DROP EXTENSION citus;
|
DROP EXTENSION citus;
|
||||||
\c
|
\c
|
||||||
CREATE EXTENSION citus;
|
CREATE EXTENSION citus;
|
||||||
|
|
||||||
|
-- test cache invalidation in workers
|
||||||
|
\c - - - :worker_1_port
|
||||||
|
|
||||||
|
-- this will initialize the cache
|
||||||
|
\d
|
||||||
|
DROP EXTENSION citus;
|
||||||
|
SET citus.enable_version_checks TO 'false';
|
||||||
|
CREATE EXTENSION citus VERSION '5.2-4';
|
||||||
|
SET citus.enable_version_checks TO 'true';
|
||||||
|
-- during ALTER EXTENSION, we should invalidate the cache
|
||||||
|
ALTER EXTENSION citus UPDATE;
|
||||||
|
|
||||||
|
-- if cache is invalidated succesfull, this \d should work without any problem
|
||||||
|
\d
|
||||||
|
|
Loading…
Reference in New Issue