From d7eb9f723fd2a984fe2dd3a9d94bdf01247cd489 Mon Sep 17 00:00:00 2001 From: Pravesh Sharma Date: Fri, 9 Dec 2022 14:09:01 +0530 Subject: [PATCH] Fixed RESQL test case failure. #5470 --- .../tests/pg/default/create_partition_table_with_collate.sql | 3 ++- .../tables/tests/pg/default/create_table_with_partition.sql | 3 ++- .../tests/pg/default/create_table_with_range_partition.sql | 3 ++- .../tests/ppas/11_plus/create_partition_table_with_collate.sql | 3 ++- .../tests/ppas/11_plus/create_table_with_hash_partition.sql | 3 ++- .../tests/ppas/12_plus/create_partition_table_with_collate.sql | 3 ++- .../tests/ppas/12_plus/create_table_with_hash_partition.sql | 3 ++- .../tables/tests/ppas/12_plus/create_table_with_partition.sql | 3 ++- .../tests/ppas/12_plus/create_table_with_range_partition.sql | 3 ++- .../tests/ppas/default/create_partition_table_with_collate.sql | 3 ++- .../tables/tests/ppas/default/create_table_with_partition.sql | 3 ++- .../tests/ppas/default/create_table_with_range_partition.sql | 3 ++- 12 files changed, 24 insertions(+), 12 deletions(-) diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/pg/default/create_partition_table_with_collate.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/pg/default/create_partition_table_with_collate.sql index 08b348515..413d6bc2e 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/pg/default/create_partition_table_with_collate.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/pg/default/create_partition_table_with_collate.sql @@ -22,7 +22,8 @@ COMMENT ON TABLE public."partition_table_with_collate_$%{}[]()&*^!@""'`\/#" -- Partitions SQL CREATE TABLE public.cust_arr_small PARTITION OF public."partition_table_with_collate_$%{}[]()&*^!@""'`\/#" - FOR VALUES FROM ('20') TO ('25'); + FOR VALUES FROM ('20') TO ('25') +TABLESPACE pg_default; ALTER TABLE IF EXISTS public.cust_arr_small OWNER to postgres; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/pg/default/create_table_with_partition.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/pg/default/create_table_with_partition.sql index 5c6892234..f28b1e599 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/pg/default/create_table_with_partition.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/pg/default/create_table_with_partition.sql @@ -22,7 +22,8 @@ COMMENT ON TABLE public."table_with_patition_$%{}[]()&*^!@""'`\/#" -- Partitions SQL CREATE TABLE public.cust_active PARTITION OF public."table_with_patition_$%{}[]()&*^!@""'`\/#" - FOR VALUES IN ('ACTIVE'); + FOR VALUES IN ('ACTIVE') +TABLESPACE pg_default; ALTER TABLE IF EXISTS public.cust_active OWNER to postgres; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/pg/default/create_table_with_range_partition.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/pg/default/create_table_with_range_partition.sql index 1dc9a50ee..8dafaa96d 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/pg/default/create_table_with_range_partition.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/pg/default/create_table_with_range_partition.sql @@ -19,7 +19,8 @@ ALTER TABLE IF EXISTS public."table_with_range_patition_$%{}[]()&*^!@""'`\/#" -- Partitions SQL CREATE TABLE public."cust_arr_small PARTITION" PARTITION OF public."table_with_range_patition_$%{}[]()&*^!@""'`\/#" - FOR VALUES FROM ('20') TO ('25'); + FOR VALUES FROM ('20') TO ('25') +TABLESPACE pg_default; ALTER TABLE IF EXISTS public."cust_arr_small PARTITION" OWNER to postgres; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/11_plus/create_partition_table_with_collate.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/11_plus/create_partition_table_with_collate.sql index 5b100df76..db799d0fb 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/11_plus/create_partition_table_with_collate.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/11_plus/create_partition_table_with_collate.sql @@ -22,7 +22,8 @@ COMMENT ON TABLE public."partition_table_with_collate_$%{}[]()&*^!@""'`\/#" -- Partitions SQL CREATE TABLE IF NOT EXISTS public.cust_arr_small PARTITION OF public."partition_table_with_collate_$%{}[]()&*^!@""'`\/#" - FOR VALUES FROM ('20') TO ('25'); + FOR VALUES FROM ('20') TO ('25') +TABLESPACE pg_default; ALTER TABLE IF EXISTS public.cust_arr_small OWNER to enterprisedb; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/11_plus/create_table_with_hash_partition.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/11_plus/create_table_with_hash_partition.sql index 39e0791b6..3b1f62801 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/11_plus/create_table_with_hash_partition.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/11_plus/create_table_with_hash_partition.sql @@ -22,7 +22,8 @@ COMMENT ON TABLE public."table_with_hash_patition_$%{}[]()&*^!@\""'`\\/#" -- Partitions SQL CREATE TABLE IF NOT EXISTS public.cust_part11 PARTITION OF public."table_with_hash_patition_$%{}[]()&*^!@\""'`\\/#" - FOR VALUES WITH (modulus 2, remainder 1); + FOR VALUES WITH (modulus 2, remainder 1) +TABLESPACE pg_default; ALTER TABLE IF EXISTS public.cust_part11 OWNER to enterprisedb; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_partition_table_with_collate.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_partition_table_with_collate.sql index 158d9a6af..126bdc267 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_partition_table_with_collate.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_partition_table_with_collate.sql @@ -18,7 +18,8 @@ COMMENT ON TABLE public."partition_table_with_collate_$%{}[]()&*^!@""'`\/#" -- Partitions SQL CREATE TABLE IF NOT EXISTS public.cust_arr_small PARTITION OF public."partition_table_with_collate_$%{}[]()&*^!@""'`\/#" - FOR VALUES FROM ('20') TO ('25'); + FOR VALUES FROM ('20') TO ('25') +TABLESPACE pg_default; ALTER TABLE IF EXISTS public.cust_arr_small OWNER to enterprisedb; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_table_with_hash_partition.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_table_with_hash_partition.sql index 2b449ea3b..27d18708b 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_table_with_hash_partition.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_table_with_hash_partition.sql @@ -18,7 +18,8 @@ COMMENT ON TABLE public."table_with_hash_patition_$%{}[]()&*^!@\""'`\\/#" -- Partitions SQL CREATE TABLE IF NOT EXISTS public.cust_part11 PARTITION OF public."table_with_hash_patition_$%{}[]()&*^!@\""'`\\/#" - FOR VALUES WITH (modulus 2, remainder 1); + FOR VALUES WITH (modulus 2, remainder 1) +TABLESPACE pg_default; ALTER TABLE IF EXISTS public.cust_part11 OWNER to enterprisedb; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_table_with_partition.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_table_with_partition.sql index 539167193..f8350037a 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_table_with_partition.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_table_with_partition.sql @@ -18,7 +18,8 @@ COMMENT ON TABLE public."table_with_patition_$%{}[]()&*^!@""'`\/#" -- Partitions SQL CREATE TABLE IF NOT EXISTS public.cust_active PARTITION OF public."table_with_patition_$%{}[]()&*^!@""'`\/#" - FOR VALUES IN ('ACTIVE'); + FOR VALUES IN ('ACTIVE') +TABLESPACE pg_default; ALTER TABLE IF EXISTS public.cust_active OWNER to enterprisedb; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_table_with_range_partition.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_table_with_range_partition.sql index 6a6096b4f..b8fa14fb9 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_table_with_range_partition.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/12_plus/create_table_with_range_partition.sql @@ -15,7 +15,8 @@ ALTER TABLE IF EXISTS public."table_with_range_patition_$%{}[]()&*^!@""'`\/#" -- Partitions SQL CREATE TABLE IF NOT EXISTS public."cust_arr_small PARTITION" PARTITION OF public."table_with_range_patition_$%{}[]()&*^!@""'`\/#" - FOR VALUES FROM ('20') TO ('25'); + FOR VALUES FROM ('20') TO ('25') +TABLESPACE pg_default; ALTER TABLE IF EXISTS public."cust_arr_small PARTITION" OWNER to enterprisedb; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/default/create_partition_table_with_collate.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/default/create_partition_table_with_collate.sql index 5b100df76..db799d0fb 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/default/create_partition_table_with_collate.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/default/create_partition_table_with_collate.sql @@ -22,7 +22,8 @@ COMMENT ON TABLE public."partition_table_with_collate_$%{}[]()&*^!@""'`\/#" -- Partitions SQL CREATE TABLE IF NOT EXISTS public.cust_arr_small PARTITION OF public."partition_table_with_collate_$%{}[]()&*^!@""'`\/#" - FOR VALUES FROM ('20') TO ('25'); + FOR VALUES FROM ('20') TO ('25') +TABLESPACE pg_default; ALTER TABLE IF EXISTS public.cust_arr_small OWNER to enterprisedb; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/default/create_table_with_partition.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/default/create_table_with_partition.sql index c32bcc370..c78bdccef 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/default/create_table_with_partition.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/default/create_table_with_partition.sql @@ -22,7 +22,8 @@ COMMENT ON TABLE public."table_with_patition_$%{}[]()&*^!@""'`\/#" -- Partitions SQL CREATE TABLE IF NOT EXISTS public.cust_active PARTITION OF public."table_with_patition_$%{}[]()&*^!@""'`\/#" - FOR VALUES IN ('ACTIVE'); + FOR VALUES IN ('ACTIVE') +TABLESPACE pg_default; ALTER TABLE IF EXISTS public.cust_active OWNER to enterprisedb; diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/default/create_table_with_range_partition.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/default/create_table_with_range_partition.sql index a9aaf885c..36bfb537d 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/default/create_table_with_range_partition.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/ppas/default/create_table_with_range_partition.sql @@ -19,7 +19,8 @@ ALTER TABLE IF EXISTS public."table_with_range_patition_$%{}[]()&*^!@""'`\/#" -- Partitions SQL CREATE TABLE IF NOT EXISTS public."cust_arr_small PARTITION" PARTITION OF public."table_with_range_patition_$%{}[]()&*^!@""'`\/#" - FOR VALUES FROM ('20') TO ('25'); + FOR VALUES FROM ('20') TO ('25') +TABLESPACE pg_default; ALTER TABLE IF EXISTS public."cust_arr_small PARTITION" OWNER to enterprisedb;