File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 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)
78797879 /*
78807880 * We're about ready to sort block groups to determine the optimal order
78817881 * 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.
78847886 *
78857887 * This scheme divides heap blocks/block groups into buckets. Each bucket
78867888 * contains blocks that have _approximately_ the same number of promising
You can’t perform that action at this time.
0 commit comments