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 1wPeyW-000vpM-2B for pgsql-hackers@arkaria.postgresql.org; Wed, 20 May 2026 11:20:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wPeyU-007H0E-25 for pgsql-hackers@arkaria.postgresql.org; Wed, 20 May 2026 11:20:31 +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 1wPeyT-007H06-2M for pgsql-hackers@lists.postgresql.org; Wed, 20 May 2026 11:20:31 +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.98.2) (envelope-from ) id 1wPeyR-00000000TgN-3A5P for pgsql-hackers@postgresql.org; Wed, 20 May 2026 11:20:29 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 2F0B6EC02A1; Wed, 20 May 2026 07:20:27 -0400 (EDT) Received: from phl-imap-08 ([10.202.2.84]) by phl-compute-05.internal (MEProxy); Wed, 20 May 2026 07:20:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=compiler.org; h= cc:cc:content-transfer-encoding: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=fm3; t=1779276027; x=1779362427; bh=5ccw3e5kFjJnG144/c2hX4yFjusCcb4E41U56suIF0c=; b= LbTWyf03duJUwrLXrliXCirdrGAh+M8BS74ztJN5HcZTrrmL1Ui6QcZQL+i4RatA xkyWX9sxpWd0Hi46zCWkQEiAxh4r8kxAiE6OmKPJvEKj5XF26yGAMxfLsGuaGdu0 zQDTiS9ey6Md+E9wdQIht2hkXrCsioo6Sw0Ek7UQwjpE9icEFChD1k6MbNzcBaHm 4HapScXUuWcwwlAOkNN2D2loKGDczlA6FHlQGxjdVtKKy2njlrsnd+qyyglUMh+k +mTuZWTZkfrX6HUFFKxo1iUBNgroWq27rGnA82yJ7jf8rhCa7cppbWJaxsEtzpdE /jLr9jXIcSymGa7V+O/P1A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=fm3; t=1779276027; x= 1779362427; bh=5ccw3e5kFjJnG144/c2hX4yFjusCcb4E41U56suIF0c=; b=f h1B59cbROq/WMWANlReo02fIXMpJUz39UMIw/mOVwVgAm8X7KFpbZLs6dAXF7VJv nSR7SQ73Q24gwn9iLwgv59sD8Wa837mIYMzgl+WKtQxIYe5vExqqgvRWHe/3Lj6v kamgUT57fq2yYaNLIJqqHb8P2whtiR9sNA2NpOZMA7Qi1Oa+0WAkrRQ4Nk9ziPLB aHgSHJlsQ2MAhAk9Pm9zVpVkbgCXWO1NvoKuiN/96b3WoeGdp3ZiQH+Tp8GAdJI4 txZbJQxoxobEiZGb9HzvQfvKz94WDSKvoafpHVgNWkWoKC7xa2iKsLLfz2AF5SQR 5qiVI73s4B+9IdG/HQl/A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddugeeggeelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefoggffhffvvefkjghfufgtgfesthejre dtredttdenucfhrhhomhepfdflohgvlhculfgrtghosghsohhnfdcuoehjohgvlhestgho mhhpihhlvghrrdhorhhgqeenucggtffrrghtthgvrhhnpeefheelffegvdelfeevteejtd ekteefleeihfdtudelkeeijedtvefgueevieekieenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpehjohgvlhestghomhhpihhlvghrrdhorhhgpd hnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrrhhs vghnihihrdhmuhhkhhhinhdruggvvhesghhmrghilhdrtghomhdprhgtphhtthhopehpgh hsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ic6394509:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id E470D2CE0072; Wed, 20 May 2026 07:20:26 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: Ae8-aTnWUuY7 Date: Wed, 20 May 2026 04:20:05 -0700 From: "Joel Jacobson" To: "Arseniy Mukhin" Cc: pgsql-hackers Message-Id: In-Reply-To: References: <9835b0a4-9121-47ac-9c44-427b8b1a7f1b@app.fastmail.com> Subject: Re: [PATCH] Fix LISTEN startup race with direct advancement Content-Type: text/plain Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, May 20, 2026, at 04:01, Arseniy Mukhin wrote: > One point - looks like the 0003 contains the same test as 0001. They are similar, but if you look carefully you'll see that they use different injection points: 0001 uses async-notify-before-listen-commit 0002 uses async-notify-after-listen-commit Another different is that if you only apply 0001 and run the tests, that test will fail without the 0003 fix, whereas 0002 pass both with and without 0003, since it just tests and demonstrates the already documented quite harmless false positive race condition. > Also while I was trying to understand the issue ... > diagram in the head of the file). It depends on 0001. Your patch fixes > it too. OK, I didn't look in detail at untriggered-notification.patch.nocfbot, but good to hear 0003 fixes it too. Thanks for reviewing. /Joel