We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent6544546 commitfbe4cb3Copy full SHA for fbe4cb3
src/backend/access/heap/heapam.c
@@ -7879,8 +7879,10 @@ bottomup_sort_and_shrink(TM_IndexDeleteOp *delstate)
7879
/*
7880
* We're about ready to sort block groups to determine the optimal order
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).
+ * promising tuples for each block group up to the next power-of-two,
+ * 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.
7886
*
7887
* This scheme divides heap blocks/block groups into buckets. Each bucket
7888
* contains blocks that have _approximately_ the same number of promising