forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7bb9721
committed
Save a few cycles during nbtree VACUUM.
Avoid calling RelationGetNumberOfBlocks() unnecessarily in the commoncase where there are no deleted but not yet recycled pages to recycleduring a cleanup-only nbtree VACUUM operation.Follow-up to commite5d8a99, which (among other things) taught the"skip full scan" nbtree VACUUM mechanism to only trigger a full indexscan when the absolute number of deleted pages in the index isconsidered excessive.1 parenteffdd3f commit7bb9721
1 file changed
+5
-9
lines changedLines changed: 5 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
825 | 825 |
| |
826 | 826 |
| |
827 | 827 |
| |
828 |
| - | |
| 828 | + | |
829 | 829 |
| |
830 |
| - | |
| 830 | + | |
| 831 | + | |
831 | 832 |
| |
832 | 833 |
| |
833 | 834 |
| |
| |||
916 | 917 |
| |
917 | 918 |
| |
918 | 919 |
| |
919 |
| - | |
920 |
| - | |
921 |
| - | |
922 |
| - | |
| 920 | + | |
923 | 921 |
| |
924 | 922 |
| |
925 | 923 |
| |
926 | 924 |
| |
927 |
| - | |
928 |
| - | |
929 |
| - | |
| 925 | + | |
930 | 926 |
| |
931 | 927 |
| |
932 | 928 |
| |
|
0 commit comments
Comments
(0)