Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v9Env-00DLGj-68 for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Oct 2025 03:37:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v9Ent-009lb9-V9 for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Oct 2025 03:37:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v9Ent-009lb0-57 for pgsql-hackers@lists.postgresql.org; Thu, 16 Oct 2025 03:37:24 +0000 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1v9Enq-00214h-1G for pgsql-hackers@postgresql.org; Thu, 16 Oct 2025 03:37:23 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 5A195140019E; Wed, 15 Oct 2025 23:37:21 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 15 Oct 2025 23:37:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1760585841; x=1760672241; bh=OIlBEzgkMs ZvIBxenHWSWNK2IbmtZQII+lAo1YwNvYE=; b=L2UaNyYA0uFJyh5nTdcVftD0rN 2J605LGjQQ1VdRR6PenWanMrEV5/p4sYg374cvvcqJR8RKh8oSwlP4ksAd1YuD4l r1X/Lu/apee+ziZpOvbDO0+t0263VZ/We9MHp5izaTNQvVIczrJBdCufb98VVX9A cykigjKr0ltKZ/6ADNnbVyqAuYa5vQBssyGPhPZfSy7RXhc3Mnk6eXPvdOHts8BN 9pdtS65tnPUVGKSQqUcDIwiywMInXIqFdxbExcf8Cev9XzJ9oP2W0JqZCwaKVQvY xd4jZsZeRRBF3bPkzoKURl8TFU4ySkHp2cJ/q4pMKQp94rz2sfUzra0bwfgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1760585841; x=1760672241; bh=OIlBEzgkMsZvIBxenHWSWNK2IbmtZQII+lA o1YwNvYE=; b=APxkU2UHQuv2qhJYQCyJuVBZ1JTZIxJTknR6RvK2JomrYtXSilb hOcdVy2U1Hl0OfF4eJNtYpjgQoTYbvZQO8hWDHSUO93TCSka3Tn5ERuNlU/nNHqH r0/W5KVryR/teiXm1jXOWWR/3UGNryWlR4i+BR6LPKwydBxV5P9cb6+D2STlr9jF dH5sbFF+royT7cixvqIi8J/zsEL/xfJ8yo2jGeEkL6UrYYmdyDLg7QNKd5AkwYV6 IM+ymdS7FLxHMTNFb3A889Erb8JQWjDYZI4trlUNW08QeBA7Y1WsCAT1j0mww3cT XNL8YmRNMP2X9imkEqBvaqAUDcddQuBQ4Iw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduvdehvddvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepiedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepkhhurh houggrrdhhrgihrghtohesfhhujhhithhsuhdrtghomhdprhgtphhtthhopehlvghpihhh ohhvsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesph hoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepihifrghtrgdrrgihrgesfhhujhhi thhsuhdrtghomhdprhgtphhtthhopehlihdrvghvrghnrdgthhgrohesghhmrghilhdrtg homhdprhgtphhtthhopehsmhhithhhphgsvddvhedtsehgmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 15 Oct 2025 23:37:19 -0400 (EDT) Date: Thu, 16 Oct 2025 12:37:01 +0900 From: Michael Paquier To: "Hayato Kuroda (Fujitsu)" Cc: 'Andrei Lepikhov' , pgsql-hackers , "Aya Iwata (Fujitsu)" , 'Chao Li' , Peter Smith Subject: Re: [PROPOSAL] Termination of Background Workers for ALTER/DROP DATABASE Message-ID: References: <43160fac-0c75-4e43-8894-2e1131075127@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SnwFsJRBcF73JEja" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --SnwFsJRBcF73JEja Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 14, 2025 at 04:36:01AM +0000, Hayato Kuroda (Fujitsu) wrote: >> The only question I have is whether to >> make sending a termination signal a default behaviour and let the flag >> deactivate it. >=20 > I think it can be done in future enhancement. > We can change the default behavior based on the feedback from developers. Yeah, I cannot agree with a change in the default behavior to cancel the workers on a database touched by a database command. This is a behavior that exists since bgworkers are supported in tree in 9.3. If one is interested in making the workers more responsive, they could just flip the flag switch. -- Michael --SnwFsJRBcF73JEja Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmjwaF0ACgkQnvQgOdby QH3pmA//XW7gDkXi3q2yX1Dt5I2YpKMnE69lHaAOEpcQXz1sKK6VbXtg0Y7rBI/z zQEYELG0uFMo4Gsi1trCiBSpnZS1Hly0RAnmHp/CgMt8i/6tuXBOoItMWIZbsAsh tnMYivdGwoTrVd/o9kRBmKbJPwVrd1uc4YrakreUPZahnM0QTDcDSRtAO2t075su 1BZoF5BWD2+08T7r6UAvr0NKfoBvbHK5ZC5EUYdGHVc4SV2F76OqJYgV2gF+vW34 7SubvzyriaDceL/RI9tLfJ+yKZlKArm4ajG2L3WgauVUUmimAewbE/zFzRO9FQFO rBWASO5No712pOT8e30Q+eApEg+w6vuds/vRHzAqscw054Pcw52I1PC90dwqnsxC XE9TvpwoBsMuuA4dxEg7nVDSQpBZt8stGHSjbZe6thUHQC92rJ4wgToYW80vikmN ZQUNVIxQyB/hp9zdmQOss1ffM+2HOxR/xT3jKb1OctmgQuJdNnWd7yBlRvBSlaaW AyFzBsRTVec9j1LBWYgNYc9dtjNP+FAqUJLWos8vh09XopzTYYTVtg6zTgwCqwNV PCpP5SceFPYnrA1b3LYk/BQHmostoTP+qHbA2TIcCQ5uB1GJ5Ww6lpahTtFWIgOG f/TH13JGY+yEbmi3Jd9Vytg2e98hQb/exL+oVGhJ+fNAXLX05Ug= =bIDD -----END PGP SIGNATURE----- --SnwFsJRBcF73JEja--