From: | Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru> |
---|---|
To: | Justin Pryzby <pryzby(at)telsasoft(dot)com> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Teodor Sigaev <teodor(at)sigaev(dot)ru>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: doc fixes: vacuum_cleanup_index_scale_factor |
Date: | 2018-05-08 09:35:00 |
Message-ID: | CAPpHfdtOBRi1ccgHYSQcXc_GGFVTq0baqs3pc1u0t0Cgfs0-QQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi, Justin!
Thank you for revising documentation patch.
On Mon, May 7, 2018 at 7:55 PM, Justin Pryzby <pryzby(at)telsasoft(dot)com> wrote:
> On Mon, May 07, 2018 at 07:26:25PM +0300, Alexander Korotkov wrote:
> > Hi!
> >
> > I've revised docs and comments, and also made some fixes in the code.
> > See the attached patchset.
> >
> > * 0004-btree-cleanup-docs-comments-fixes.patch
> > Documentation and comment improvements from Justin Pryzby
> > revised by me.
>
> 2nd iteration:
>
> diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
> index eabe2a9235..785ecf922a 100644
> --- a/doc/src/sgml/config.sgml
> +++ b/doc/src/sgml/config.sgml
> @@ -1893,15 +1893,35 @@ include_dir 'conf.d'
> </term>
> <listitem>
> <para>
> - 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: the index contains no deleted pages which can
> be
> + recycled during cleanup; and, the index statistics are not stale.
> + In order to detect stale index statistics, number of total heap
> tuples
> should say: "THE number"
>
> + during previous statistics collection is memorized in the index
> s/memorized/stored/
>
> + meta-page. Once number number of inserted tuples since previous
> Should say "Once the number of inserted tuples..."
>
> + statistics collection is more than
> + <varname>vacuum_cleanup_index_scale_factor</varname> fraction of
> + number of heap tuples memorized in the meta-page, index
> statistics is
> s/memorized/stored/
>
> + considered to be stalled. Note, that number of heap tuples is
> written
> "THE number"
> s/stalled/stale/
>
> + to the meta-page at the first time when no dead tuples are found
> remove "at"
>
> + during <command>VACUUM</command> cycle. Thus, skip of B-tree
> index
> I think should say: "Thus, skipping of the B-tree index scan"
>
> + scan during cleanup stage is only possible in second and
> subsequent
> s/in/when/
>
> + <para>
> + Zero value of <varname>vacuum_cleanup_index_
> scale_factor</varname>
> I would say "A zero value of ..."
>
I've applied all the changes you suggested. Please, find it in the
attached patchset.
------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
Attachment | Content-Type | Size |
---|---|---|
0001-vacuum-cleanup-index-scale-factor-user-set-2.patch | application/octet-stream | 935 bytes |
0002-vacuum-cleanup-index-scale-factor-tab-complete-2.patch | application/octet-stream | 1.4 KB |
0003-btree-cleanup-condition-fix-2.patch | application/octet-stream | 900 bytes |
0004-btree-cleanup-docs-comments-fixes-2.patch | application/octet-stream | 5.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2018-05-08 09:55:15 | Re: [Suspect SPAM] Re: [HACKERS] path toward faster partition pruning |
Previous Message | Alexander Lakhin | 2018-05-08 08:32:35 | Re: Porting PG Extension from UNIX to Windows |