From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: Daniel Westermann (DWE) <daniel.westermann@dbi-services.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Behavior change in PostgreSQL 14Beta3 or bug?
Date: Mon, 06 Sep 2021 18:21:13 +0200
Message-ID: <2767fd7e5750d00fababa51a187b262e64d337da.camel@cybertec.at> (raw)
In-Reply-To: <3065647.1630943989@sss.pgh.pa.us>
References: <ZR0P278MB0920DD8896094F105A2521C3D2D29@ZR0P278MB0920.CHEP278.PROD.OUTLOOK.COM>
<CAH2-WzkNuMkFns4cYfqZq0BZXNpxh=FOS2ue4-9Cus=kB8DfSA@mail.gmail.com>
<6fb7ffe9f584cb76e5c7aadc83d7562009224cb8.camel@cybertec.at>
<3065647.1630943989@sss.pgh.pa.us>
On Mon, 2021-09-06 at 11:59 -0400, Tom Lane wrote:
> Laurenz Albe <laurenz.albe@cybertec.at> writes:
> > It is not an incompatibility that warrants a mention in the release notes,
> > but perhaps somthing in
> > https://www.postgresql.org/docs/14/indexes-index-only-scans.html
> > and/or
> > https://www.postgresql.org/docs/14/routine-vacuuming.html#VACUUM-FOR-VISIBILITY-MAP
> > could be added that recommends that people should consider frequent
> > VACUUM with "index_cleanup = on" for best performance with index-only scans.
>
> If enough pages would change their all-visible state to make a significant
> difference in index-only scan performance, VACUUM should not be skipping
> the cleanup. If it is, the threshold for that is too aggressive.
>
> Assuming that that choice was made appropriately, I think the advice you
> propose here will just cause people to waste lots of cycles on VACUUM
> runs that have only marginal effects.
#define BYPASS_THRESHOLD_PAGES 0.02 /* i.e. 2% of rel_pages */
So up to an additional 2% of all pages can have the all-visible bit
unset with "index_cleanup = auto".
That is probably not worth worrying, right?
Yours,
Laurenz Albe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, tgl@sss.pgh.pa.us, pg@bowt.ie, daniel.westermann@dbi-services.com
Subject: Re: Behavior change in PostgreSQL 14Beta3 or bug?
In-Reply-To: <2767fd7e5750d00fababa51a187b262e64d337da.camel@cybertec.at>
References: <ZR0P278MB0920DD8896094F105A2521C3D2D29@ZR0P278MB0920.CHEP278.PROD.OUTLOOK.COM> <CAH2-WzkNuMkFns4cYfqZq0BZXNpxh=FOS2ue4-9Cus=kB8DfSA@mail.gmail.com> <6fb7ffe9f584cb76e5c7aadc83d7562009224cb8.camel@cybertec.at> <3065647.1630943989@sss.pgh.pa.us> <2767fd7e5750d00fababa51a187b262e64d337da.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox