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 1jYdeU-00017Z-Fu for pgsql-docs@arkaria.postgresql.org; Tue, 12 May 2020 22:45:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jYdeT-0000kL-1H for pgsql-docs@arkaria.postgresql.org; Tue, 12 May 2020 22:45:29 +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 1jYdeS-0000jo-Rc for pgsql-docs@lists.postgresql.org; Tue, 12 May 2020 22:45:28 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYdeL-0002fa-QO for pgsql-docs@lists.postgresql.org; Tue, 12 May 2020 22:45:28 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1jYdeK-00088r-4t; Tue, 12 May 2020 18:45:20 -0400 Date: Tue, 12 May 2020 18:45:20 -0400 From: Bruce Momjian To: "David G. Johnston" Cc: yigongh@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: The suggestion of reducing autovacuum_vacuum_cost_delay should be documented Message-ID: <20200512224520.GE4666@momjian.us> References: <158927918783.656.11973436145559215458@wrigleys.postgresql.org> <20200512214014.GD4666@momjian.us> <20200512214101.GA21408@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, May 12, 2020 at 03:38:16PM -0700, David G. Johnston wrote: > On Tue, May 12, 2020 at 2:41 PM Bruce Momjian wrote: > > On Tue, May 12, 2020 at 05:40:14PM -0400, Bruce Momjian wrote: > > On Tue, May 12, 2020 at 10:26:27AM +0000, PG Doc comments form wrote: > > > The following documentation comment has been logged on the website: > > > > > > Page: https://www.postgresql.org/docs/11/runtime-config-autovacuum.html > > > Description: > > > > > > The `autovacuum_vacuum_cost_delay` setting changes to 2ms in PostgreSQL > 12 > > > but in the old Postgresql version, the default setting is still 20ms. I > > > would suggest adding a suggestion in the old document > > > to lower the autovacuum_vacuum_cost_delay as: > > > > > > > The default value of autovacuum_vacuum_cost_delay is reduced to 2ms > in > > > PostgreSQL 12. Reducing the autovacuum_vacuum_cost_delay will make the > > > autovacuum more aggressive and might reduce the vacuum cost for > > > write-intensive workload on big table. > > > > Uh, we usually don't suggest new defaults in back branches. > > Basically, what I am saying is that if you want this, it would be a new > behavior that would need general discussion. > > > > The proposal is to document in versions 9.4 to 11 that the recommended value > for the setting is 2ms while for reasons of continuity the default in these > versions is 20ms. > > I don't really see any harm in it.  Its not like the choice to reduce the value > was made because of new features introduced in 12 - it was a re-evaluation of a > 15 year old default. Well, we really need to have some general discussion about whether changing defaults in major releases should trigger a mention to change the defaults in back branches. This is something that would have to be discussed on the hackers list. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +