Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfbe4cb3

Browse files
Fix comment about promising tuples.
Oversight in commitd168b66, which added bottom-up index deletion.
1 parent6544546 commitfbe4cb3

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)

[8]ページ先頭

©2009-2025 Movatter.jp