!3820 【bugfix】修复修改分区表压缩属性时,有概率栈溢出的问题
Merge pull request !3820 from 周聪/bugfix_alter_compress_stack_overflow
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