Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNH2O-0003Wy-Mz for pgsql-general@arkaria.postgresql.org; Mon, 06 Sep 2021 16:00:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mNH2N-0006Ay-EH for pgsql-general@arkaria.postgresql.org; Mon, 06 Sep 2021 15:59:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNH2N-0006Aq-5Z for pgsql-general@lists.postgresql.org; Mon, 06 Sep 2021 15:59:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNH2K-0004eE-G3 for pgsql-general@lists.postgresql.org; Mon, 06 Sep 2021 15:59:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 186FxnGd3065648; Mon, 6 Sep 2021 11:59:49 -0400 From: Tom Lane To: Laurenz Albe cc: Peter Geoghegan , "Daniel Westermann (DWE)" , "pgsql-generallists.postgresql.org" Subject: Re: Behavior change in PostgreSQL 14Beta3 or bug? In-reply-to: <6fb7ffe9f584cb76e5c7aadc83d7562009224cb8.camel@cybertec.at> References: <6fb7ffe9f584cb76e5c7aadc83d7562009224cb8.camel@cybertec.at> Comments: In-reply-to Laurenz Albe message dated "Mon, 06 Sep 2021 17:48:42 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3065646.1630943989.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 06 Sep 2021 11:59:49 -0400 Message-ID: <3065647.1630943989@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > It is not an incompatibility that warrants a mention in the release note= s, > 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-VIS= IBILITY-MAP > could be added that recommends that people should consider frequent > VACUUM with "index_cleanup =3D 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. regards, tom lane