Content-Length: 265748 | pFad | http://github.com/postgrespro/postgres/commit/fbe4cb3bd49f9e524f53ef77c775c1bad4d0312a

7E Fix comment about promising tuples. · postgrespro/postgres@fbe4cb3 · GitHub
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

Lines changed: 4 additions & 2 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/fbe4cb3bd49f9e524f53ef77c775c1bad4d0312a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy