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 1w2HVN-0009WT-2m for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Mar 2026 23:37:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2HVM-00EI4z-2b for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Mar 2026 23:37:48 +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 1w2HVM-00EI4q-1F for pgsql-hackers@lists.postgresql.org; Mon, 16 Mar 2026 23:37:48 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w2HVJ-000000005tk-0cC4 for pgsql-hackers@postgresql.org; Mon, 16 Mar 2026 23:37:47 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id F17E414001FE; Mon, 16 Mar 2026 19:37:45 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Mon, 16 Mar 2026 19:37:45 -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=fm1; t=1773704265; x=1773790665; bh=nqy1lf+5NM of/HZ0fViqSTCo4lqgQveBVx/2Rm8O2t0=; b=kjVwsf2kgUs036sJ1BbLRWVk9N m0Sfgtql3e6L87lBtpv+WYF0S+Op2eQzqp9jv3YcwCkD40dsw4IwXDzK1srrH9ee pNcczSa5Yozo94bu3hED9BcLz8PuOo5VxJJLyBI8Jzq6QqUFkpO2glQ0YPgCFYB0 lMBOUt2qa7natd1XhUYCremMljVpMEjaInr+ZZrVYdcpDtPGBWRQkc5GhjwCAkbZ y9gWB/nOkd9+gOY7B44kEyhw8aGNMa72uCDvWwb2PVlkBLLF0y3cbDhdsa+rnSc5 mURu5aTK7j+jxAbDtNQVtwmoPw1I11bANALeEwO8ZFy00ZWcZ5aR1CfuxOIA== 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=fm1; t= 1773704265; x=1773790665; bh=nqy1lf+5NMof/HZ0fViqSTCo4lqgQveBVx/ 2Rm8O2t0=; b=k1NZAKYUocfdlrV/AErqHX9ein4lCOJaXzP0Fqz4KIi3W/MfAq1 tJ0bpnRpQP5VZUCgIu8K3K+9DVa5/Y6XTYqC9c4m4r0LdEe20PUQqtW/jp1Uz2dn tJDKJvl+l1suTS2dN7e23UkqF9TmVBG3iX/NU65bDkIoVI8uPg+AUn0RClCuASso ZJsIFCH6cf40+/S1bsABuWXn+8fTUmHPagG2N+KYU7zW6kwzFkW5K7KLIfS4q3V6 wdoiTLC6L0DBvkALmuPLMCmKoY6QjS+FshUnc+yuxBIhKHtLsnUFRQogtLg3z4Lk K7Srk2sPVQfzyGr/N70awcnZ9xoU+WWEclw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvleeljedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepiedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihifrg htrgdrrgihrgesfhhujhhithhsuhdrtghomhdprhgtphhtthhopehsmhhithhhphgsvddv hedtsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphgrvhgvlhdrshhtvghhuhhlvgesgh hmrghilhdrtghomhdprhgtphhtthhopehlihdrvghvrghnrdgthhgrohesghhmrghilhdr tghomhdprhgtphhtthhopehkuhhrohgurgdrhhgrhigrthhosehfuhhjihhtshhurdgtoh hmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdho rhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 Mar 2026 19:37:43 -0400 (EDT) Date: Tue, 17 Mar 2026 08:37:39 +0900 From: Michael Paquier To: "Aya Iwata (Fujitsu)" Cc: Peter Smith , 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="1gSo2pAS4LEtUT+Y" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --1gSo2pAS4LEtUT+Y Content-Type: multipart/mixed; boundary="peiUiodxulzMk8CD" Content-Disposition: inline --peiUiodxulzMk8CD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 16, 2026 at 04:23:40PM +0900, Michael Paquier wrote: > Aye, we have a timing issue here, and at first it seemed to me that > this was a bug in the backend logic. But actually I suspect that it > is simpler than that: we don't disable autovacuum so couldn't an > autovacuum worker connect to the database "testdb" that we are trying > to rename in this query? I cannot be 100% sure because we have > reduced the log activity for the sake of the tests, but that feels > possible to me. We could try to disable autovacuum entirely, then see > if the situation gets better in the buildfarm. >=20 > The failure rate is so low that it is likely going to take a few weeks > to check the stability of the situation. We could also lot more > things, of course, as a temporary solution. After sleeping on it, I do not have a better idea than the attached, so we could always get that into the tree and see if the situation improves, even if it would take time. Iwata-san and others, what do you think? Perhaps you could think of a different reason causing this failure? -- Michael --peiUiodxulzMk8CD Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=worker-spi-test.patch Content-Transfer-Encoding: quoted-printable diff --git a/src/test/modules/worker_spi/t/002_worker_terminate.pl b/src/te= st/modules/worker_spi/t/002_worker_terminate.pl index 6d3794355981..21dfb5961289 100644 --- a/src/test/modules/worker_spi/t/002_worker_terminate.pl +++ b/src/test/modules/worker_spi/t/002_worker_terminate.pl @@ -59,6 +59,10 @@ sub run_bgworker_interruptible_test =20 my $node =3D PostgreSQL::Test::Cluster->new('mynode'); $node->init; +$node->append_conf( + "postgresql.conf", qq( +autovacuum =3D off +)); $node->start; =20 # Check if the extension injection_points is available, as it may be --peiUiodxulzMk8CD-- --1gSo2pAS4LEtUT+Y Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmm4lEMACgkQnvQgOdby QH1sLg/7B7Xj1n7+d60MzkOmh2bZPl6ZlX6OAXTBCEB+2mDiUxtfV4ZCRNVTMXuM WgBC9DYyPZhu5n3xv7jPUSJJ9Ka7u0iCTjT3TGrwxtIJXj6SbwAdTEcgbigxbTeB dYsxGBF9bKNVyXjSdXop/oobeWAyLyNg+0IQWg5x11u8dkgkL8eSmDHp8pHeQmb0 ftE6UTdb86hAcIiMeue+KfUwDQJQVQ9k0NCrkCq+IZjfCPQ4c8+QOE3QBP3I1J// Za51C7Q8/hVogsFOFF25knZpw6my9yLJTyKVNVRV9v7ElwJlrW5ntvd7HrQGJZen aIRp+uZ73mFnPa+dGlFpk4LiPzojtU+xjWf4YLchh3kFNrnv5dRJxXUDbVX4u+D9 tL+pVfVcs5eoIHspSfoNQcQftyq20DkpyxkREO4qWvAFEXeB6iEULA0RiHWeJDOz O3YTtr53FsL4798iKLEb6G7q9l0TraSU92LyU8K2LwIA2SAnBdFkrsblTd2Wr5+J FCPcilkPFXrRIlfuEzPlNilnbOKJZPNtjg0grwm9ctamznhKUrHP/yakbhvkyCIs 95ZWxVM2P3YNo3LFb8i8OeUbySCLTL9xnLHVSOAPinb6t36vlJLsNL0nqQiMjPUe 5ezhjVYDtm/6sxiIdDbfQQtZQk4/n7rYHK5u8nzYDljDMD/JOp4= =jUGy -----END PGP SIGNATURE----- --1gSo2pAS4LEtUT+Y--