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.96) (envelope-from ) id 1vczlx-00CpRN-1b for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Jan 2026 05:38:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vczlw-006NYw-0O for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Jan 2026 05:38: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.96) (envelope-from ) id 1vczlv-006NYm-0l for pgsql-hackers@lists.postgresql.org; Tue, 06 Jan 2026 05:38:24 +0000 Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vczlu-004SI9-1X for pgsql-hackers@postgresql.org; Tue, 06 Jan 2026 05:38:23 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 625D7EC00F4; Tue, 6 Jan 2026 00:38:20 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Tue, 06 Jan 2026 00:38:20 -0500 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=1767677900; x=1767764300; bh=GEWykmGzSK BEkaHjO3iHmY4iz7cRax3AYE7TlQ1B5p0=; b=Q/cOeNV18+VjpMoLwcGiaco5py GCtAQtoyx5pSXAp1yXuVtWbbIQcFmcA69ijBnYGzmqMZIHdCi99H3PTf7hcsTswa Ysyw1/uuWG6khbrKQUAYpQ03bGFjUTP82iCPTNn15hoDRDp3T7/qf0VuoIyuVcBP 88d+fesVBZw9qbw1X5EXGZ01iGYbQMJIKTNl70SsOaBE21O9wHgKfO7rbp5QTa0t IRl96tHEl1ukkRtIJGpPyWKnpL8IwTiipOPzLZZTwAsesDlKJP2QCINdmGUtv90p Gt96yfkEn3m8KO/T7B7/xwxTws+MpdgfUml/3aAzbIi4WYVMbIyByEbp4JAg== 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= 1767677900; x=1767764300; bh=GEWykmGzSKBEkaHjO3iHmY4iz7cRax3AYE7 TlQ1B5p0=; b=E9wT7n4zSwsbM7iHSvXYUDvkTF56uMvQcCPUEYAQd99eUPg+/Hy cKwfk8rPX3hdaaAPs9O+I8YOhGyndv/cHu9qi0s6bZ0Wm5eTRYKfqC+syJgLyfzY um7FsMdZ7IYwzv7554kNqMYSu8rgoU3f0kApm4SZSx8utSGRUjH5LDgZABwLuuYc E8US5EvwPzOx8t3J+ZAu7pbm8HIsK/snEj9JbfvdIB8C5c0f4U9mT03+c76xWzLZ Nf79rFPLT2uuCsF+tFo5Gfm4RFQUGumbOD1H+BSm1YhuTEvr/yt54IXJLa69HAX0 BpUU6xUM5I0CicuoXqAmPK9N78eeHHTMS5g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdelleefiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeggeff hfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopeeipdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehsmhhith hhphgsvddvhedtsehgmhgrihhlrdgtohhmpdhrtghpthhtohepihifrghtrgdrrgihrges fhhujhhithhsuhdrtghomhdprhgtphhtthhopehprghvvghlrdhsthgvhhhulhgvsehgmh grihhlrdgtohhmpdhrtghpthhtoheplhhirdgvvhgrnhdrtghhrghosehgmhgrihhlrdgt ohhmpdhrtghpthhtohepkhhurhhouggrrdhhrgihrghtohesfhhujhhithhsuhdrtghomh dprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhr gh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 6 Jan 2026 00:38:18 -0500 (EST) Date: Tue, 6 Jan 2026 14:38:06 +0900 From: Michael Paquier To: Peter Smith Cc: "Aya Iwata (Fujitsu)" , Pavel Stehule , Chao Li , "Hayato Kuroda (Fujitsu)" , pgsql-hackers Subject: Re: [PROPOSAL] Termination of Background Workers for ALTER/DROP DATABASE Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="T3klPRSOcfyJw/j5" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --T3klPRSOcfyJw/j5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 06, 2026 at 08:18:39AM +1100, Peter Smith wrote: > This did not seem like the correct fix for my previous review comment > [1, comment #3], because the autovacuum backends are still killed with > SIGTERM, right? Yes, you are right that this creates a confusing mix. Bgworkers have no relationship with SIGTERM in this code. I have added a sentence to document the new behavior for interruptible bgworkers, after the existing ones. One thing that was also missing is the fact that the wait can be shortened with the injection point. > 2. > +# Confirm that the non-interruptible bgworker is still running. > +my $result =3D $node->safe_psql( > + "postgres", qq( > + SELECT count(1) FROM pg_stat_activity > + WHERE backend_type =3D 'worker_spi dynamic';)); >=20 > The indentation of the "SELECT" still does not look correct to me. Did > you run pgperltidy on this file? perltidy is happy with that, because it considers the string within the quoted qq() area as something fine. At the end this is just a tab vs whitespace issue, you are right that this should use whitespaces. I have done a couple of test runs in the CI to be sure, and noticed no instability in the tests, so applied. I'll keep an eye on the CFbot and the buildfarm for the next few days. -- Michael --T3klPRSOcfyJw/j5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmlcn74ACgkQnvQgOdby QH0F3hAAqrmZT7bUabTUwdxe5tqPeELIEo6Xo9dX2TQ6/DDFkfIklDo1I4NvNb0/ MHS1TTRG3gxAElT/WVMAsdW+S9C2dtKOtxQHoyJ0NKR55Jg7F1bcC6CJxLsdsaHC D2NQMM8zzOUYzoYmEOpe5rzaRCobfNMl60d8oiMn7FJFf4wAdGkvoFKRnvIcv54g AVVXz9p8IlX/MswPLmqQN+xja9d/Eqwxbtqnt3/pGdye+d4W8Bnl6wTT4lhWHA5G 67O86jfwZGrKAvBfguhK3Bff4IimYoR/VVKpAPouX/PNA+O2yiS/PCrO3+y7eZ6y w40s9TtrrpeVy3ANzCKoGiXDSSBPBg70J46G3N40F/mPpR/oZECUnIJzXIEP07lR 02Dk24Xwfawd7B6bZGO4AFFOyxAvVsAPDaLsizWoXeVbMXBseNR8Td4QHHXCqDea t39q+F7yqByAUgsMEnDFZFDzQFeUn1Fq4LXJVdQqv4G45CmfmZMYOJUS9MaudX38 4y7C82uqD0LrwOo2SZO8rHNvC9tkatikV+ySKze2emMR25sTaEsNEMB7ABkqa4u2 0HyHNA7n5Cjt26TxCTP7jlEKySLoDfcB/ZVfRg4qvwKR3hzeihXfAU68sd2YtXWx nZnlBjllJ8D+l/z3tBQLDHU4zVHadeu9xieNN2d8SbfE9Kml4BU= =pRs+ -----END PGP SIGNATURE----- --T3klPRSOcfyJw/j5--