Use RESET for GUC test, not reconnect

More limited in what it does, better test.
pull/1277/head
Jason Petersen 2017-04-04 16:40:17 -06:00
parent 7e46f41c12
commit 8b4620ef16
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
2 changed files with 2 additions and 2 deletions

View File

@ -100,8 +100,8 @@ WHERE pgd.refclassid = 'pg_extension'::regclass AND
(1 row)
-- see incompatible version errors out
RESET citus.enable_version_checks;
DROP EXTENSION citus;
\c
CREATE EXTENSION citus VERSION '5.0';
ERROR: specified version incompatible with loaded Citus library
DETAIL: Loaded library requires 6.2, but 5.0 was specified.

View File

@ -94,8 +94,8 @@ WHERE pgd.refclassid = 'pg_extension'::regclass AND
pgio.schema NOT IN ('pg_catalog', 'citus');
-- see incompatible version errors out
RESET citus.enable_version_checks;
DROP EXTENSION citus;
\c
CREATE EXTENSION citus VERSION '5.0';
-- re-create in newest version