【bugfix】 修改分区表压缩属性时有可能内存溢出

This commit is contained in:
congzhou2603
2023-07-20 16:45:24 +08:00
parent 17c06e43f5
commit c8ce7f3a6a
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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