fix-collation-mismatch-create-dist-table
Onur Tirtir 2025-10-17 13:00:57 +03:00
parent e0522bbc2b
commit ad3bc800f6
2 changed files with 56 additions and 56 deletions

View File

@ -282,13 +282,13 @@ create table test_a_tbl_1(text_col text collate "C" unique);
create table test_a_tbl_2(text_col text collate "en-x-icu" unique);
select create_distributed_table('test_a_tbl_1', 'text_col');
create_distributed_table
--------------------------
---------------------------------------------------------------------
(1 row)
select create_distributed_table('test_a_tbl_2', 'text_col');
create_distributed_table
--------------------------
---------------------------------------------------------------------
(1 row)
@ -303,7 +303,7 @@ select count(*) = 2 as colocationids_different from (
and pg_class.relname in ('test_a_tbl_1', 'test_a_tbl_2')
) q;
colocationids_different
-------------------------
---------------------------------------------------------------------
t
(1 row)
@ -312,13 +312,13 @@ create table test_d_tbl_1(text_col text collate "C" unique);
create table test_d_tbl_2(text_col text collate "en-x-icu" unique);
select create_distributed_table('test_d_tbl_1', 'text_col', shard_count=>4);
create_distributed_table
--------------------------
---------------------------------------------------------------------
(1 row)
select create_distributed_table('test_d_tbl_2', 'text_col', shard_count=>6);
create_distributed_table
--------------------------
---------------------------------------------------------------------
(1 row)
@ -328,7 +328,7 @@ NOTICE: moving the data of single_node.test_d_tbl_2
NOTICE: dropping the old single_node.test_d_tbl_2
NOTICE: renaming the new table to single_node.test_d_tbl_2
alter_distributed_table
-------------------------
---------------------------------------------------------------------
(1 row)
@ -343,7 +343,7 @@ select count(*) = 2 as colocationids_different from (
and pg_class.relname in ('test_d_tbl_1', 'test_d_tbl_2')
) q;
colocationids_different
-------------------------
---------------------------------------------------------------------
t
(1 row)
@ -352,7 +352,7 @@ create table test_b_tbl_1(text_col text collate "C" unique);
create table test_b_tbl_2(text_col text collate "en-x-icu" unique);
select create_distributed_table('test_b_tbl_1', 'text_col');
create_distributed_table
--------------------------
---------------------------------------------------------------------
(1 row)
@ -365,13 +365,13 @@ create table test_c_tbl_1(text_col text collate "C" unique);
create table test_c_tbl_2(text_col text collate "en-x-icu" unique);
select create_distributed_table('test_c_tbl_1', 'text_col');
create_distributed_table
--------------------------
---------------------------------------------------------------------
(1 row)
select create_distributed_table('test_c_tbl_2', 'text_col', colocate_with => 'none');
create_distributed_table
--------------------------
---------------------------------------------------------------------
(1 row)

View File

@ -101,13 +101,13 @@ create table test_a_tbl_1(text_col text collate "C" unique);
create table test_a_tbl_2(text_col text collate "en-x-icu" unique);
select create_distributed_table('test_a_tbl_1', 'text_col');
create_distributed_table
--------------------------
---------------------------------------------------------------------
(1 row)
select create_distributed_table('test_a_tbl_2', 'text_col');
create_distributed_table
--------------------------
---------------------------------------------------------------------
(1 row)
@ -124,7 +124,7 @@ select result as colocationids_different from run_command_on_all_nodes($$
) q;
$$);
colocationids_different
-------------------------
---------------------------------------------------------------------
t
t
t
@ -135,13 +135,13 @@ create table test_d_tbl_1(text_col text collate "C" unique);
create table test_d_tbl_2(text_col text collate "en-x-icu" unique);
select create_distributed_table('test_d_tbl_1', 'text_col', shard_count=>4);
create_distributed_table
--------------------------
---------------------------------------------------------------------
(1 row)
select create_distributed_table('test_d_tbl_2', 'text_col', shard_count=>6);
create_distributed_table
--------------------------
---------------------------------------------------------------------
(1 row)
@ -151,7 +151,7 @@ NOTICE: moving the data of "Update Colocation".test_d_tbl_2
NOTICE: dropping the old "Update Colocation".test_d_tbl_2
NOTICE: renaming the new table to "Update Colocation".test_d_tbl_2
alter_distributed_table
-------------------------
---------------------------------------------------------------------
(1 row)
@ -168,7 +168,7 @@ select result as colocationids_different from run_command_on_all_nodes($$
) q;
$$);
colocationids_different
-------------------------
---------------------------------------------------------------------
t
t
t
@ -179,7 +179,7 @@ create table test_b_tbl_1(text_col text collate "C" unique);
create table test_b_tbl_2(text_col text collate "en-x-icu" unique);
select create_distributed_table('test_b_tbl_1', 'text_col');
create_distributed_table
--------------------------
---------------------------------------------------------------------
(1 row)
@ -192,13 +192,13 @@ create table test_c_tbl_1(text_col text collate "C" unique);
create table test_c_tbl_2(text_col text collate "en-x-icu" unique);
select create_distributed_table('test_c_tbl_1', 'text_col');
create_distributed_table
--------------------------
---------------------------------------------------------------------
(1 row)
select create_distributed_table('test_c_tbl_2', 'text_col', colocate_with => 'none');
create_distributed_table
--------------------------
---------------------------------------------------------------------
(1 row)