mirror of https://github.com/citusdata/citus.git
Update propagate extension commands test for pg12
The test file was changes slightly to avoid adding an alternative output. We update the existing alternative output for pg12 with the new changes.pg14_support_after_rebase
parent
b57e6be724
commit
ed82affce5
|
@ -161,10 +161,11 @@ SELECT run_command_on_workers($$SELECT count(extnamespace) FROM pg_extension WHE
|
||||||
(localhost,57637,t,1)
|
(localhost,57637,t,1)
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT run_command_on_workers($$SELECT extversion FROM pg_extension WHERE extname = 'seg'$$);
|
SELECT workers.result = pg_extension.extversion AS same_version
|
||||||
run_command_on_workers
|
FROM run_command_on_workers($$SELECT extversion FROM pg_extension WHERE extname = 'seg'$$) workers, pg_extension WHERE extname = 'seg';
|
||||||
|
same_version
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
(localhost,57637,t,1.3)
|
t
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- now create the reference table
|
-- now create the reference table
|
||||||
|
@ -253,11 +254,12 @@ SELECT run_command_on_workers($$SELECT count(extnamespace) FROM pg_extension WHE
|
||||||
(localhost,57638,t,1)
|
(localhost,57638,t,1)
|
||||||
(2 rows)
|
(2 rows)
|
||||||
|
|
||||||
SELECT run_command_on_workers($$SELECT extversion FROM pg_extension WHERE extname = 'seg'$$);
|
SELECT workers.result = pg_extension.extversion AS same_version
|
||||||
run_command_on_workers
|
FROM run_command_on_workers($$SELECT extversion FROM pg_extension WHERE extname = 'seg'$$) workers, pg_extension WHERE extname = 'seg';
|
||||||
|
same_version
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
(localhost,57637,t,1.3)
|
t
|
||||||
(localhost,57638,t,1.3)
|
t
|
||||||
(2 rows)
|
(2 rows)
|
||||||
|
|
||||||
-- check for the unpackaged extension to be created correctly
|
-- check for the unpackaged extension to be created correctly
|
||||||
|
@ -375,12 +377,12 @@ BEGIN;
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
-- show that the CREATE EXTENSION command propagated even if the transaction
|
-- show that the CREATE EXTENSION command propagated even if the transaction
|
||||||
-- block is rollbacked, that's a shortcoming of dependency creation logic
|
-- block is rollbacked, that's a shortcoming of dependency creation logic
|
||||||
SELECT run_command_on_workers($$SELECT extversion FROM pg_extension WHERE extname = 'seg'$$);
|
SELECT COUNT(DISTINCT workers.result)
|
||||||
run_command_on_workers
|
FROM run_command_on_workers($$SELECT extversion FROM pg_extension WHERE extname = 'seg'$$) workers;
|
||||||
|
count
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
(localhost,57637,t,1.3)
|
1
|
||||||
(localhost,57638,t,1.3)
|
(1 row)
|
||||||
(2 rows)
|
|
||||||
|
|
||||||
-- drop the schema and all the objects
|
-- drop the schema and all the objects
|
||||||
DROP SCHEMA "extension'test" CASCADE;
|
DROP SCHEMA "extension'test" CASCADE;
|
||||||
|
|
Loading…
Reference in New Issue