A question for the patch "blooming filter"
A question for the patch "blooming filter"
От:
Unicron <ssmei_2000@yahoo.com>
Дата:
| i have a view of code, and find a question.There is a variable named 'bloom_pruning" set to be 'false' outside function 'bloom_filter_init' in file 'bloomfn.c', and there is a stataments if (bloom_pruning == false) return; at begin of the function "bloom_filter_init". And i don't find any places which set variable 'bloom_pruning' to 'true', may i take it as code following the statments above in 'bloom_filter_init' never execute? |
Re: A question for the patch "blooming filter"
От:
"Fujii Masao" <masao.fujii@gmail.com>
Дата:
Hi, On Wed, Dec 10, 2008 at 10:02 AM, Unicron wrote: > i have a view of code, and find a question.There is a variable named > 'bloom_pruning" set to be > 'false' outside function 'bloom_filter_init' in file 'bloomfn.c', and there > is a stataments > if (bloom_pruning == false) > return; > at begin of the function "bloom_filter_init". > > And i don't find any places which set variable 'bloom_pruning' to 'true', > may i take it as > code following the statments above in 'bloom_filter_init' never execute? bloom_pruning is GUC, so it's set to true/false when postgresql.conf is parsed or SET command is executed. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center