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) (2 rows)
-- should work properly - no names clashes -- should work properly - no names clashes
SET client_min_messages TO WARNING;
SELECT 1 FROM citus_activate_node('localhost', :worker_1_port); 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? ?column?
--------------------------------------------------------------------- ---------------------------------------------------------------------
1 1
(1 row) (1 row)
RESET client_min_messages;
\c - - - :worker_1_port \c - - - :worker_1_port
-- check that indexes are named properly -- check that indexes are named properly
SELECT tablename, indexname FROM pg_indexes SELECT tablename, indexname FROM pg_indexes

View File

@ -142,8 +142,9 @@ where (select pg_catalog.array_agg(id) from sqlsmith_failures.countries)
-- cleanup -- cleanup
DROP SCHEMA sqlsmith_failures CASCADE; 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 DETAIL: drop cascades to table countries
drop cascades to table countries_1280000
drop cascades to table orgs drop cascades to table orgs
drop cascades to table users drop cascades to table users
drop cascades to table orders 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 type type_for_view_prop
drop cascades to view prop_view_8 drop cascades to view prop_view_8
drop cascades to table view_table_5 drop cascades to table view_table_5
drop cascades to view prop_view_9 drop cascades to table view_table_6
drop cascades to view prop_view_10 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) (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 CREATE OR REPLACE VIEW select_filtered_view AS
SELECT * FROM view_test_table WHERE c = 'testing' SELECT * FROM view_test_table WHERE c = 'testing'
WITH CASCADED CHECK OPTION; WITH CASCADED CHECK OPTION;
@ -15,6 +18,7 @@ CREATE OR REPLACE VIEW select_all_view AS
WITH LOCAL CHECK OPTION; WITH LOCAL CHECK OPTION;
CREATE OR REPLACE VIEW count_view AS CREATE OR REPLACE VIEW count_view AS
SELECT COUNT(*) FROM view_test_table; SELECT COUNT(*) FROM view_test_table;
RESET client_min_messages;
INSERT INTO view_test_table VALUES (1,1,'testing'), (2,1,'views'); INSERT INTO view_test_table VALUES (1,1,'testing'), (2,1,'views');
SELECT * FROM count_view; SELECT * FROM count_view;
count 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; WHERE schemaname = 'partitioning_schema' AND tablename ilike '%part_table_with_%' ORDER BY 1, 2;
-- should work properly - no names clashes -- should work properly - no names clashes
SET client_min_messages TO WARNING;
SELECT 1 FROM citus_activate_node('localhost', :worker_1_port); SELECT 1 FROM citus_activate_node('localhost', :worker_1_port);
RESET client_min_messages;
\c - - - :worker_1_port \c - - - :worker_1_port
-- check that indexes are named properly -- 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); CREATE TABLE view_test_table(a INT NOT NULL PRIMARY KEY, b BIGINT, c text);
SELECT create_distributed_table('view_test_table', 'a'); SELECT create_distributed_table('view_test_table', 'a');
-- Since creating view distributed or locally depends on the arbitrary config
SHOW citus.enable_metadata_sync; -- set client_min_messages to ERROR to get consistent result.
SELECT * FROM pg_dist_partition; SET client_min_messages TO ERROR;
SELECT pg_identify_object_as_address(classid, objid, objsubid) from pg_catalog.pg_dist_object;
CREATE OR REPLACE VIEW select_filtered_view AS CREATE OR REPLACE VIEW select_filtered_view AS
SELECT * FROM view_test_table WHERE c = 'testing' SELECT * FROM view_test_table WHERE c = 'testing'
WITH CASCADED CHECK OPTION; WITH CASCADED CHECK OPTION;
@ -16,6 +14,7 @@ CREATE OR REPLACE VIEW select_all_view AS
WITH LOCAL CHECK OPTION; WITH LOCAL CHECK OPTION;
CREATE OR REPLACE VIEW count_view AS CREATE OR REPLACE VIEW count_view AS
SELECT COUNT(*) FROM view_test_table; SELECT COUNT(*) FROM view_test_table;
RESET client_min_messages;
INSERT INTO view_test_table VALUES (1,1,'testing'), (2,1,'views'); INSERT INTO view_test_table VALUES (1,1,'testing'), (2,1,'views');
SELECT * FROM count_view; SELECT * FROM count_view;