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 1mJnLA-0008Gw-5p for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Aug 2021 01:41:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mJnL8-0004VL-69 for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Aug 2021 01:40:58 +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 1mJnL6-0004VD-UX for pgsql-hackers@lists.postgresql.org; Sat, 28 Aug 2021 01:40:57 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJnL3-0006up-GW for pgsql-hackers@lists.postgresql.org; Sat, 28 Aug 2021 01:40:55 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id E4EDE5C00C1; Fri, 27 Aug 2021 21:40:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 27 Aug 2021 21:40:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=xMVbQezruFsTJPlccel0VCni55X 6/IQejI4Qr3wMwzI=; b=e9uLNn7O/Mv4dSkn5N6jHMIjdBgagn/HRAQCa9qWdbE 8C0HMAzNsdd1On1S/Iy8UIVTltiXcikB16s4LErgE+VdpN1tde3Bic0x/Xv4fCJZ jf5tklTUPIIQ1zK25eh4rLRT4jyv8U51eb21AHqcvstVKkfVUCTIn4Yqd/aTZibo 9KxHwpwrSAncgeKwbeeC9yu0pzkunhworZciwkMfptpv5u434rKy+I/iR1ZLP+6u gzrpjiR97GYs22tj7sMAheP29M5AOu88T3XkYkUdjZIOUXEfD9OwC6EMr4lua0Fl /aD053bxC0arAW5n8hsAuAGu2KRhGpRuPaenOXcNU9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=xMVbQe zruFsTJPlccel0VCni55X6/IQejI4Qr3wMwzI=; b=IGki5gxnVAcstfPL4EmPH+ zQTli1BLwhXlvTk1eZMPr9m4DkWm2WDpXyBrkWEaerhIqD1pSO/qj2FbxBuVRrJ1 K054jFnpSlqAJZuQlHbcyRfAyNN3V31E1VygEj0fSIJEIhmwdGdM7sjgNuIKKhV1 7fqcpMjYMaYlvFn4gKOt/TNKiDMwp38S/+Bb9kEgnXvBKCwd0bbbpGrdCYbqNSKq VZnmP28lxKWJqvqogqfG+kYEjQj/t+V9dAN2wrqBfR9iLnH7iYoxtzAWU4XWABcF PtGfD36yAXfzbunIE14kp/n/Vny0CzH+dsYbjxtntIZc/06JiubQ/QL7yspq86iA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddugedggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtroertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeehgedtueehkeetgeeuvedtleel keeggeefteefjeejgfekheeikeevjeehudejheenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Aug 2021 21:40:46 -0400 (EDT) Date: Sat, 28 Aug 2021 10:40:42 +0900 From: Michael Paquier To: Andres Freund Cc: Julien Rouhaud , Bruce Momjian , Daniel Gustafsson , Denis Laxalde , Jehan-Guillaume de Rorthais , PostgreSQL Hackers Subject: Re: [PATCH] Disable bgworkers during servers start in pg_upgrade Message-ID: References: <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> <20210826143448.GD22637@momjian.us> <20210827192842.7wef2zr24zvuh3tx@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="T4NCp47SA+OK+FL3" Content-Disposition: inline In-Reply-To: <20210827192842.7wef2zr24zvuh3tx@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --T4NCp47SA+OK+FL3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Aug 27, 2021 at 12:28:42PM -0700, Andres Freund wrote: > Isn't that just going to end up with extension code erroring out and/or > blocking waiting for a bgworker to start? Well, that's the point to block things during an upgrade. Do you have a list of requirements you'd like to see satisfied here? POWA would be fine with blocking the execution of bgworkers AFAIK (Julien feel free to correct me here if necessary). It could be possible that preventing extension code to execute this way could prevent hazards as well. The idea from upthread to prevent any writes and/or WAL activity is not really different as extensions may still generate an error because of pg_upgrade's safety measures we'd put in, no? -- Michael --T4NCp47SA+OK+FL3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmEplBoACgkQnvQgOdby QH2sXw/7BwLQjEWUecRjdAERj6DK0L3CRCFgvPyiMYKsxHnvbmSB8TmYL4DZb7HM O0Xpf+vVJurBYSZqdatIQIaNu9zdRjQA4une3Xe5SOvrugGQ4Pw8q1U5Exmm8tNM /F/o40WDvbm8WUoHop+Vz9MQLznsB+gxLtXk3HKMixzvvsv4iS0mBLArmiNYm7PB AMUY6NIR7oIGkZ8Omk16jUflHBV1rwLIyp8FZIqBijIeWJPJjDnTBJLiBfnYi75G C4pTmJfeo61R2Ng+82whLjC6F3G6mopkM/MX9lPg3BLIkTQ5JnQbRgmqVEDkf9lx x9oyVUsBEWXIytM3xlHcHuQK7yflRaDde9RbLmybM7v1wxxB/6l/2UJPl90OEVOQ FtUUt/2rer+n+0XRFekCjp1vOo2zpY95jf/e90EVvZ3cDPeaCqSUav5Lh7lma0pM 3Kz3TSp2XdpNcxJNmPIc793wQGjW2VGdg7O94x9WpkKvNTzMru5M4MFEfWP4SAmK nPv/6MjgKqiyYwgluu1dwheap4/Mt+OqzSLzJKRBYkHWQuPblZxrxqKgvWujcPAn XOZmXsdIUNc3sWMnQWlF4+vAhf+reKOiC2z6VIbuQYTYXmJFRl2DWzK2wP3fq8+J rGmgAJvu1HD5T3TA2woN0JbsdBKnobRPH5SU0UgDt/tz6X6L7fU= =tTYy -----END PGP SIGNATURE----- --T4NCp47SA+OK+FL3--