Remove redundant reference table creation and related queries from issue 7891 tests for clarity

pull/7897/head
Mehmet Yilmaz 2025-02-25 10:13:22 +00:00 committed by Mehmet YILMAZ
parent 93f1d13d18
commit 6fd8a858a6
2 changed files with 0 additions and 72 deletions

View File

@ -206,58 +206,6 @@ SELECT 't2_ref after UPDATE' AS label, * FROM t2_ref;
t2_ref after UPDATE | 14 | 24000 | Thu Jan 01 00:00:00 2099 t2_ref after UPDATE | 14 | 24000 | Thu Jan 01 00:00:00 2099
(1 row) (1 row)
-- Creating an additional reference table t3_ref to confirm subquery logic
CREATE TABLE t3_ref(pkey INT, c15 TEXT);
SELECT create_reference_table('t3_ref');
create_reference_table
---------------------------------------------------------------------
(1 row)
INSERT INTO t3_ref VALUES (99, 'Initial Data');
UPDATE t2_ref SET c15 = '2088-08-08 00:00:00'::timestamp WHERE EXISTS ( SELECT 1 FROM t3_ref);
SELECT 't2_ref after UPDATE' AS label, * FROM t2_ref;
label | vkey | pkey | c15
---------------------------------------------------------------------
t2_ref after UPDATE | 14 | 24000 | Sun Aug 08 00:00:00 2088
(1 row)
SELECT 1 FROM citus_remove_node('localhost', :worker_2_port);
?column?
---------------------------------------------------------------------
1
(1 row)
SELECT 't2_ref after UPDATE - without worker 2' AS label, * FROM t2_ref;
label | vkey | pkey | c15
---------------------------------------------------------------------
t2_ref after UPDATE - without worker 2 | 14 | 24000 | Sun Aug 08 00:00:00 2088
(1 row)
SELECT 1 FROM citus_add_node('localhost', :worker_2_port);
?column?
---------------------------------------------------------------------
1
(1 row)
SELECT 1 FROM citus_remove_node('localhost', :worker_1_port);
?column?
---------------------------------------------------------------------
1
(1 row)
SELECT 't2_ref after UPDATE - without worker 1' AS label, * FROM t2_ref;
label | vkey | pkey | c15
---------------------------------------------------------------------
t2_ref after UPDATE - without worker 1 | 14 | 24000 | Sun Aug 08 00:00:00 2088
(1 row)
SELECT 1 FROM citus_add_node('localhost', :worker_1_port);
?column?
---------------------------------------------------------------------
1
(1 row)
-- Cleanup -- Cleanup
SET client_min_messages TO WARNING; SET client_min_messages TO WARNING;
DROP SCHEMA issue_7891 CASCADE; DROP SCHEMA issue_7891 CASCADE;

View File

@ -164,26 +164,6 @@ UPDATE t2_ref
SELECT 't2_ref after UPDATE' AS label, * FROM t2_ref; SELECT 't2_ref after UPDATE' AS label, * FROM t2_ref;
-- Creating an additional reference table t3_ref to confirm subquery logic
CREATE TABLE t3_ref(pkey INT, c15 TEXT);
SELECT create_reference_table('t3_ref');
INSERT INTO t3_ref VALUES (99, 'Initial Data');
UPDATE t2_ref SET c15 = '2088-08-08 00:00:00'::timestamp WHERE EXISTS ( SELECT 1 FROM t3_ref);
SELECT 't2_ref after UPDATE' AS label, * FROM t2_ref;
SELECT 1 FROM citus_remove_node('localhost', :worker_2_port);
SELECT 't2_ref after UPDATE - without worker 2' AS label, * FROM t2_ref;
SELECT 1 FROM citus_add_node('localhost', :worker_2_port);
SELECT 1 FROM citus_remove_node('localhost', :worker_1_port);
SELECT 't2_ref after UPDATE - without worker 1' AS label, * FROM t2_ref;
SELECT 1 FROM citus_add_node('localhost', :worker_1_port);
-- Cleanup -- Cleanup
SET client_min_messages TO WARNING; SET client_min_messages TO WARNING;
DROP SCHEMA issue_7891 CASCADE; DROP SCHEMA issue_7891 CASCADE;