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 1mJGT1-0006gN-3q for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Aug 2021 14:34:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mJGSz-0004xK-WE for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Aug 2021 14:34:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJGSz-0004x2-On for pgsql-hackers@lists.postgresql.org; Thu, 26 Aug 2021 14:34:53 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJGSx-0001uo-Hi for pgsql-hackers@lists.postgresql.org; Thu, 26 Aug 2021 14:34:52 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1mJGSu-0002ro-Cf; Thu, 26 Aug 2021 10:34:48 -0400 Date: Thu, 26 Aug 2021 10:34:48 -0400 From: Bruce Momjian To: Daniel Gustafsson Cc: Julien Rouhaud , Denis Laxalde , Michael Paquier , Jehan-Guillaume de Rorthais , Andres Freund , PostgreSQL Hackers Subject: Re: [PATCH] Disable bgworkers during servers start in pg_upgrade Message-ID: <20210826143448.GD22637@momjian.us> References: <20210127144132.215fe4bb@firost> <20210312082325.weltivlokfpc3gt2@nol> <7d470953-07cb-f9dc-f7b3-d33697644b54@dalibo.com> <20210826130945.GB22637@momjian.us> <2CD2F784-E80C-4B0D-A038-A0D44DD4EDC4@yesql.se> <30D4153D-8F40-4BB8-838B-142D2C4EB4F0@yesql.se> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <30D4153D-8F40-4BB8-838B-142D2C4EB4F0@yesql.se> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Aug 26, 2021 at 03:59:49PM +0200, Daniel Gustafsson wrote: > > On 26 Aug 2021, at 15:43, Julien Rouhaud wrote: > > > > Le jeu. 26 août 2021 à 21:38, Daniel Gustafsson > a écrit : > > > On 26 Aug 2021, at 15:09, Bruce Momjian > wrote: > > > > > Basically, pg_upgrade has avoided any backend changes that could be > > > controlled by GUCs and I am not sure we want to start adding such > > > changes for just this. > > > > In principle I think it’s sound to try to avoid backend changes where possible > > without sacrificing robustness. > > > > I agree, but it seems quite more likely that an extension relying on a bgworker changes this guc, compared to an extension forcing autovacuum to be on for instance. > > Agreed, in this particular case I think there is merit to the idea of enforcing > it in the backend. OK, works for me -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.