Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,22 @@ INSERT 12
-- of one column.
-- See https://github.com/apache/cloudberry/issues/26#issuecomment-1682097755
-- for more details.
3: select dbid,count(distinct relfilenode) as cnt, relname from old_relfilenodes group by dbid, relname order by 1,2,3;
dbid | cnt | relname
------+-----+-----------------------------------------------------
-1 | 1 | reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx
-1 | 1 | reindex_crtab_part_aoco_btree_id_idx
-1 | 2 | reindex_crtab_part_aoco_btree_1_prt_de_fault_id_idx
0 | 1 | reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx
0 | 1 | reindex_crtab_part_aoco_btree_id_idx
0 | 2 | reindex_crtab_part_aoco_btree_1_prt_de_fault_id_idx
1 | 1 | reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx
1 | 1 | reindex_crtab_part_aoco_btree_id_idx
1 | 2 | reindex_crtab_part_aoco_btree_1_prt_de_fault_id_idx
2 | 1 | reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx
2 | 1 | reindex_crtab_part_aoco_btree_id_idx
2 | 2 | reindex_crtab_part_aoco_btree_1_prt_de_fault_id_idx
(12 rows)
3: select relname, relname = 'reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx' and res.cnt in (1, 2) as special_case_for_p_one_id_idx, case when relname = 'reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx' then -1 else res.cnt end as count from (select distinct count(distinct relfilenode) as cnt, relname from old_relfilenodes group by dbid, relname) as res;
relname | special_case_for_p_one_id_idx | count
-----------------------------------------------------+-------------------------------+-------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ DELETE FROM reindex_crtab_part_aoco_btree WHERE id < 128;
-- of one column.
-- See https://github.com/apache/cloudberry/issues/26#issuecomment-1682097755
-- for more details.
3: select dbid,count(distinct relfilenode) as cnt, relname from old_relfilenodes group by dbid, relname order by 1,2,3;
3: select relname,
relname = 'reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx' and res.cnt in (1, 2) as special_case_for_p_one_id_idx,
case
Expand Down
Loading