diff options
author | Peter Geoghegan <pg@bowt.ie> | 2021-03-11 14:18:23 -0800 |
---|---|---|
committer | Peter Geoghegan <pg@bowt.ie> | 2021-03-11 14:18:23 -0800 |
commit | 7bb97211a5589265f3f88183ae9353639ab184c6 (patch) | |
tree | 523f5b1f5ef714c38618ec89f5b10735ce9f68ff /src/backend/access/gist/gistproc.c | |
parent | effdd3f3b633e88feaa675377075f02ecc99aee4 (diff) | |
download | postgresql-7bb97211a5589265f3f88183ae9353639ab184c6.tar.gz postgresql-7bb97211a5589265f3f88183ae9353639ab184c6.zip |
Save a few cycles during nbtree VACUUM.
Avoid calling RelationGetNumberOfBlocks() unnecessarily in the common
case where there are no deleted but not yet recycled pages to recycle
during a cleanup-only nbtree VACUUM operation.
Follow-up to commit e5d8a999, which (among other things) taught the
"skip full scan" nbtree VACUUM mechanism to only trigger a full index
scan when the absolute number of deleted pages in the index is
considered excessive.
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions