【bugfix】 修改分区表压缩属性时有可能内存溢出
This commit is contained in:
@ -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 */
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user