mirror of https://github.com/citusdata/citus.git
Use RESET for GUC test, not reconnect
More limited in what it does, better test.pull/1277/head
parent
7e46f41c12
commit
8b4620ef16
|
@ -100,8 +100,8 @@ WHERE pgd.refclassid = 'pg_extension'::regclass AND
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- see incompatible version errors out
|
-- see incompatible version errors out
|
||||||
|
RESET citus.enable_version_checks;
|
||||||
DROP EXTENSION citus;
|
DROP EXTENSION citus;
|
||||||
\c
|
|
||||||
CREATE EXTENSION citus VERSION '5.0';
|
CREATE EXTENSION citus VERSION '5.0';
|
||||||
ERROR: specified version incompatible with loaded Citus library
|
ERROR: specified version incompatible with loaded Citus library
|
||||||
DETAIL: Loaded library requires 6.2, but 5.0 was specified.
|
DETAIL: Loaded library requires 6.2, but 5.0 was specified.
|
||||||
|
|
|
@ -94,8 +94,8 @@ WHERE pgd.refclassid = 'pg_extension'::regclass AND
|
||||||
pgio.schema NOT IN ('pg_catalog', 'citus');
|
pgio.schema NOT IN ('pg_catalog', 'citus');
|
||||||
|
|
||||||
-- see incompatible version errors out
|
-- see incompatible version errors out
|
||||||
|
RESET citus.enable_version_checks;
|
||||||
DROP EXTENSION citus;
|
DROP EXTENSION citus;
|
||||||
\c
|
|
||||||
CREATE EXTENSION citus VERSION '5.0';
|
CREATE EXTENSION citus VERSION '5.0';
|
||||||
|
|
||||||
-- re-create in newest version
|
-- re-create in newest version
|
||||||
|
|
Loading…
Reference in New Issue