mirror of https://github.com/citusdata/citus.git
Add tests for version check
parent
52b056c301
commit
0c9901f042
|
@ -168,7 +168,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)
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,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