Re: doc fixes: vacuum_cleanup_index_scale_factor
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Teodor Sigaev <teodor@sigaev.ru>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2018-05-02T14:54:31Z
Lists: pgsql-hackers
On Tue, May 1, 2018 at 10:30 PM, Justin Pryzby <pryzby@telsasoft.com> wrote: > - When no tuples were deleted from the heap, B-tree indexes might still > - be scanned during <command>VACUUM</command> cleanup stage by two > - reasons. The first reason is that B-tree index contains deleted pages > - which can be recycled during cleanup. The second reason is that B-tree > - index statistics is stalled. The criterion of stalled index statistics > - is number of inserted tuples since previous statistics collection > - is greater than <varname>vacuum_cleanup_index_scale_factor</varname> > - fraction of total number of heap tuples. > + When no tuples were deleted from the heap, B-tree indexes are still > + scanned during <command>VACUUM</command> cleanup stage unless > + two conditions are met. First, if a B-tree index contains no deleted pages > + which can be recycled during cleanup. Second, if B-tree > + index statistics are not stale. Index statistics are considered stale unless > + <varname>vacuum_cleanup_index_scale_factor</varname> is non-negative, and the > + number of inserted tuples since the previous statistics collection is > + less than that fraction of the total number of heap tuples. > + The default is -1, meaning index scan during cleanup is not skipped. I agree that this documentation needs to be rewritten but your rewrite doesn't strike me as very good English either. A sentence of the form "First, if I like hamburgers." is not correct English. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Various improvements of skipping index scan during vacuum technics
- 8e12f4a250d2 11.0 landed
-
Skip full index scan during cleanup of B-tree indexes when possible
- 857f9c36cda5 11.0 cited