Skip to content

Commit fbe4cb3

Browse files
Fix comment about promising tuples.
Oversight in commit d168b66, which added bottom-up index deletion.
1 parent 6544546 commit fbe4cb3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/backend/access/heap/heapam.c

+4-2
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)