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_3
Sait Talha Nisanci 2021-08-21 21:33:14 +03:00
parent a75e5ba3e7
commit faf8b7ff92
1 changed files with 14 additions and 12 deletions

View File

@ -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;