File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7879,8 +7879,10 @@ bottomup_sort_and_shrink(TM_IndexDeleteOp *delstate)
7879
7879
/*
7880
7880
* We're about ready to sort block groups to determine the optimal order
7881
7881
* for visiting heap blocks. But before we do, round the number of
7882
- * promising tuples for each block group up to the nearest power-of-two
7883
- * (except for block groups where npromisingtids is already 0).
7882
+ * promising tuples for each block group up to the next power-of-two,
7883
+ * unless it is very low (less than 4), in which case we round up to 4.
7884
+ * npromisingtids is far too noisy to trust when choosing between a pair
7885
+ * of block groups that both have very low values.
7884
7886
*
7885
7887
* This scheme divides heap blocks/block groups into buckets. Each bucket
7886
7888
* contains blocks that have _approximately_ the same number of promising
You can’t perform that action at this time.
0 commit comments