From 24f247b5a1b6449da10fa735a0286c23c40ff354 Mon Sep 17 00:00:00 2001 From: Hanefi Onaldi Date: Mon, 26 Sep 2022 22:20:36 +0300 Subject: [PATCH] Cleanup multi_utility_warnings test This test used to contain some utility commands that Citus did not support. However we added support for most of the commands, and this test got outdated. We used to error out on community when user attempted to use pooler options. Now that we open sourced all enterprise features, the test can now be removed. --- src/test/regress/expected/multi_utility_warnings.out | 7 +------ src/test/regress/sql/multi_utility_warnings.sql | 11 +---------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/test/regress/expected/multi_utility_warnings.out b/src/test/regress/expected/multi_utility_warnings.out index 4f50b2a72..89899b0f1 100644 --- a/src/test/regress/expected/multi_utility_warnings.out +++ b/src/test/regress/expected/multi_utility_warnings.out @@ -2,13 +2,8 @@ -- MULTI_UTILITY_WARNINGS -- -- Tests to check if we inform the user about potential caveats of creating new --- databases, schemas. -SET citus.next_shard_id TO 1010000; +-- databases. CREATE DATABASE new_database; NOTICE: Citus partially supports CREATE DATABASE for distributed databases DETAIL: Citus does not propagate CREATE DATABASE command to workers HINT: You can manually create a database and its extensions on workers. -BEGIN; -INSERT INTO pg_dist_node VALUES (1234567890, 1234567890, 'localhost', 5432); -INSERT INTO pg_dist_poolinfo VALUES (1234567890, 'port=1234'); -ROLLBACK; diff --git a/src/test/regress/sql/multi_utility_warnings.sql b/src/test/regress/sql/multi_utility_warnings.sql index 282641aeb..491c6557c 100644 --- a/src/test/regress/sql/multi_utility_warnings.sql +++ b/src/test/regress/sql/multi_utility_warnings.sql @@ -3,15 +3,6 @@ -- -- Tests to check if we inform the user about potential caveats of creating new --- databases, schemas. - - -SET citus.next_shard_id TO 1010000; - +-- databases. CREATE DATABASE new_database; - -BEGIN; -INSERT INTO pg_dist_node VALUES (1234567890, 1234567890, 'localhost', 5432); -INSERT INTO pg_dist_poolinfo VALUES (1234567890, 'port=1234'); -ROLLBACK;