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 1vAlPb-005l76-7b for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Oct 2025 08:38:38 +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 1vAlPa-00FkO1-3Z for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Oct 2025 08:38:37 +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 1vAlPZ-00FkNZ-Q4 for pgsql-hackers@lists.postgresql.org; Mon, 20 Oct 2025 08:38:36 +0000 Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1vAlPW-002ks4-1s for pgsql-hackers@lists.postgresql.org; Mon, 20 Oct 2025 08:38:35 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id E65FC140017B; Mon, 20 Oct 2025 04:38:33 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Mon, 20 Oct 2025 04:38:33 -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=1760949513; x=1761035913; bh=Rl8bBHeYVb GCKefQ4mOf3Q3WFzqGSFa2/tc0ule5QO8=; b=BOfiHpSMBOdTzuc4QpJOMf6k/M 3ZBJCXrLOFvEkQR8cMvOYmC/JITPlQirlfas3EXpBJ1Y0TP6M1M2RHgP1U/cLt4k vWBSHMhlCOzGm4hbTS5GEORUdTc571aDI128183bZ3kc9GvSBBjtFA6V8rQxyO/1 4FSEKckK76y1t9NMnBW62vfgZoIrH9f2EW2sTvCFtb4Q6TaPea+Fo706BzQe5Lt+ 6wGEXQmoga5L/dhDDOUhKbgw+EKiM7Gv6RZs00c5VSVWRipq8DlNw0u/WGIKVofg 8zbJBTHbQobMDb6z6y1CZJgKIsM9MR0ztysBBIQfvilMqnPuY8EJiDnWYT3g== 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= 1760949513; x=1761035913; bh=Rl8bBHeYVbGCKefQ4mOf3Q3WFzqGSFa2/tc 0ule5QO8=; b=N3ekliXEi38n4dttS7vs7bOw2FdNPu8g2keVxBOeIBrssEiuDAh lAiCSdUlSk+WVzva/HXMrdVdSA5wl1OQNzE2G8fWKQSJ/zoS71AwS+KG5B+GTtiT EBybpgNEFFZA9K8M8ouhog8fF1tBDRsMz41MmBlcOP+09riAm79krp4fQNX6q5nn GwD93A/bTGYn9mdjxDS7Taxe/kfMRL4Nk2m8fQuntsqU3+0wwP/P8aBOoqtq/T7V ntIYgn/kJmELdxW2GmAycbxTi1bQSK5loqeX5C3kVwmds2BDIRTpyCfnREfCHyNb 3GV+94x/HlzCLfYbevuFlmoTJhaBSKQDSFA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddufeejfeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvhhigh hnvghshhdvudesghhmrghilhdrtghomhdprhgtphhtthhopehhlhhinhhnrghkrgesihhk ihdrfhhipdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhosh htghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Oct 2025 04:38:32 -0400 (EDT) Date: Mon, 20 Oct 2025 17:38:14 +0900 From: Michael Paquier To: vignesh C Cc: Heikki Linnakangas , PostgreSQL Hackers Subject: Re: Random pg_upgrade 004_subscription test failure on drongo Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uTrA1N9CnZhT85Xu" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --uTrA1N9CnZhT85Xu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 22, 2025 at 02:28:35PM +0530, vignesh C wrote: > CFBot reported an issue in one of the machines, here is an updated > version for the same. @@ -235,6 +248,9 @@ mdcreate(SMgrRelation reln, ForkNumber forknum, bool is= Redo) [...] +#if defined(WIN32) && !defined(__CYGWIN__) + if (!retryattempted && pg_RtlGetLastNtStatus() =3D=3D STATUS_D= ELETE_PENDING) + { + retryattempted =3D true; + WaitForProcSignalBarrier(EmitProcSignalBarrier(PROCSIGNAL_= BARRIER_SMGRRELEASE)); + goto retry; + } Adding more WIN32-specific awesomeness into a single backend code path that we try to make POSIX-consistent does not seem right to me, because it may apply to more FDs opened than this one, no? One code=20 path would be to enforce a signal in pgwin32_open_handle(), only when we see a STATUS_DELETE_PENDING. And there is a retry loop in src/port/open.c in our wrapper, partially for this reason. Like any failures of this type, how can we reliably make sure that these issues are gone for sure? Perhaps it would be time to have a test module specified in concurrent file-system operations? We could hold into FDs while making backends wait, for example, with various concurrent in-core calls stepping on each other.. Perhaps that would be beneficial in the long-term knowing the number of platforms we need to support. -- Michael --uTrA1N9CnZhT85Xu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmj19PYACgkQnvQgOdby QH0jPhAAki1fsK3S3CpM47KKsX2c7cqLOoCXvf1Y/YKgyM4VzPmlY2X+F9bK9U/d ydXEVWYZrJjTc0MgYqCWpb5NYXjN6nSQXRIwpiajtNQOOZ3gyg1tYoitKxD/oOjW Tzn1+SNxl1aU1oAusMLzquVzXaJYMJbP/Raf4+cwJSNoAhQLHnYdExJ78WIhtdJe Q+35fIt8Kc2Appd94LZOdJj7a3BqVT1WaJdr8aLN9TKwavW7vixZ2b0KMSDmFHjQ 4FNF8KjRMHChXEWSjCeCBnAUQtSQNvk/1kDUoIsMd5s+ayHtrS1XpFGiyJgGgQmN cFXNvbk+N/xnNWfW+Uf8nasVsEIkayzgsenieLnPwdVKgzg6O1N2iivB4FahK80B JyymTAN+nq5+4Rbi4q2ejlSmDgtZHJOhQzEN51LOCzsQkkfRJJW5c1T/VPYfr1Vb 2P7lTConJix98opT7DIvMNWZL67veKMQIffjkjwTraypxMeaPwgvVYydL2hsTG9b rEt8B/Uhintcfl/gzigSakCXm/haXCRnwfuLJOEM/wtwDBD7SN+e2O+zOEpjdV78 6CXU9Ow+BusXUbAhfKB4aNKhiUP4/c3utchQKz7+3Ta4bgMAMYM9jwMHmlov8m/q iGUs3/TV/Op1ckKHfWoD+S4kjfFE2QM6zMHLkJ6tE0md9yTZGlc= =1apq -----END PGP SIGNATURE----- --uTrA1N9CnZhT85Xu--