fix remaining tests

onder_view
Burak Velioglu 2022-04-19 13:23:03 +03:00
parent 8ff1a72706
commit 96343b03fa
6 changed files with 17 additions and 11 deletions

View File

@ -4301,14 +4301,14 @@ WHERE schemaname = 'partitioning_schema' AND tablename ilike '%part_table_with_%
(2 rows)
-- should work properly - no names clashes
SET client_min_messages TO WARNING;
SELECT 1 FROM citus_activate_node('localhost', :worker_1_port);
NOTICE: Replicating postgres objects to node localhost:xxxxx
DETAIL: There are 106 objects to replicate, depending on your environment this might take a while
?column?
---------------------------------------------------------------------
1
1
(1 row)
RESET client_min_messages;
\c - - - :worker_1_port
-- check that indexes are named properly
SELECT tablename, indexname FROM pg_indexes

View File

@ -142,8 +142,9 @@ where (select pg_catalog.array_agg(id) from sqlsmith_failures.countries)
-- cleanup
DROP SCHEMA sqlsmith_failures CASCADE;
NOTICE: drop cascades to 6 other objects
NOTICE: drop cascades to 7 other objects
DETAIL: drop cascades to table countries
drop cascades to table countries_1280000
drop cascades to table orgs
drop cascades to table users
drop cascades to table orders

View File

@ -316,5 +316,5 @@ drop cascades to view prop_view_7
drop cascades to type type_for_view_prop
drop cascades to view prop_view_8
drop cascades to table view_table_5
drop cascades to view prop_view_9
drop cascades to view prop_view_10
drop cascades to table view_table_6
drop cascades to view nums_1_100_prop_view

View File

@ -7,6 +7,9 @@ SELECT create_distributed_table('view_test_table', 'a');
(1 row)
-- Since creating view distributed or locally depends on the arbitrary config
-- set client_min_messages to ERROR to get consistent result.
SET client_min_messages TO ERROR;
CREATE OR REPLACE VIEW select_filtered_view AS
SELECT * FROM view_test_table WHERE c = 'testing'
WITH CASCADED CHECK OPTION;
@ -15,6 +18,7 @@ CREATE OR REPLACE VIEW select_all_view AS
WITH LOCAL CHECK OPTION;
CREATE OR REPLACE VIEW count_view AS
SELECT COUNT(*) FROM view_test_table;
RESET client_min_messages;
INSERT INTO view_test_table VALUES (1,1,'testing'), (2,1,'views');
SELECT * FROM count_view;
count

View File

@ -1992,7 +1992,9 @@ SELECT tablename, indexname FROM pg_indexes
WHERE schemaname = 'partitioning_schema' AND tablename ilike '%part_table_with_%' ORDER BY 1, 2;
-- should work properly - no names clashes
SET client_min_messages TO WARNING;
SELECT 1 FROM citus_activate_node('localhost', :worker_1_port);
RESET client_min_messages;
\c - - - :worker_1_port
-- check that indexes are named properly

View File

@ -3,11 +3,9 @@ SET search_path TO views_create;
CREATE TABLE view_test_table(a INT NOT NULL PRIMARY KEY, b BIGINT, c text);
SELECT create_distributed_table('view_test_table', 'a');
SHOW citus.enable_metadata_sync;
SELECT * FROM pg_dist_partition;
SELECT pg_identify_object_as_address(classid, objid, objsubid) from pg_catalog.pg_dist_object;
-- Since creating view distributed or locally depends on the arbitrary config
-- set client_min_messages to ERROR to get consistent result.
SET client_min_messages TO ERROR;
CREATE OR REPLACE VIEW select_filtered_view AS
SELECT * FROM view_test_table WHERE c = 'testing'
WITH CASCADED CHECK OPTION;
@ -16,6 +14,7 @@ CREATE OR REPLACE VIEW select_all_view AS
WITH LOCAL CHECK OPTION;
CREATE OR REPLACE VIEW count_view AS
SELECT COUNT(*) FROM view_test_table;
RESET client_min_messages;
INSERT INTO view_test_table VALUES (1,1,'testing'), (2,1,'views');
SELECT * FROM count_view;