diff --git a/src/gausskernel/optimizer/commands/cluster.cpp b/src/gausskernel/optimizer/commands/cluster.cpp index 94c258945..d4d62aa08 100755 --- a/src/gausskernel/optimizer/commands/cluster.cpp +++ b/src/gausskernel/optimizer/commands/cluster.cpp @@ -3219,7 +3219,7 @@ static void swapPartitionfiles( /* set the relOptions of old rel to the ones after compressed options */ UpdatePartitionRelOptionsSystemCache(tab->newOptions, &reltup1, relRelation1, (void**)&relform1); /* set the relOptions of new rel to the ones before alter compressed options */ - UpdatePartitionRelOptionsSystemCache(tab->oldOptions, &reltup2, relRelation2, (void**)&relform2); + UpdatePgClassRelOptionsSystemCache(tab->oldOptions, &reltup2, relRelation2, (void**)&relform2); } /* swap size statistics too, since new rel has freshly-updated stats */ diff --git a/src/test/regress/expected/row_compression/alter_compress_params.out b/src/test/regress/expected/row_compression/alter_compress_params.out index e0f4a353e..260e565c1 100644 --- a/src/test/regress/expected/row_compression/alter_compress_params.out +++ b/src/test/regress/expected/row_compression/alter_compress_params.out @@ -793,7 +793,7 @@ SELECT nchunks, chunknos FROM pg_catalog.compress_address_details('alter_compres 1 | {1} (1 row) -SELECT count(*) FROM compress_statistic_info(compress_func_findpath('alter_compress_params_schema.all_options_table_compresstype_1_cpc_1'), 1); +SELECT count(*) FROM compress_ratio_info(compress_func_findpath('alter_compress_params_schema.all_options_table_compresstype_1_cpc_1')); count ------- 1