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 1wUGXz-0012vD-1v for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jun 2026 04:16:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wUGXy-00Cbj4-1O for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jun 2026 04:16:10 +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 1wUGXs-00Cbiv-2z for pgsql-hackers@lists.postgresql.org; Tue, 02 Jun 2026 04:16:10 +0000 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wUGXq-00000000gac-29po for pgsql-hackers@lists.postgresql.org; Tue, 02 Jun 2026 04:16:04 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.stl.internal (Postfix) with ESMTP id 0DB817A00BE; Tue, 2 Jun 2026 00:16:00 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Tue, 02 Jun 2026 00:16:01 -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=1780373760; x=1780460160; bh=rB0Np6ymwG SGON17w2TOjm2c3tXgmee5h5BDtgEm46U=; b=v7Ow1Dd3jYfGbwGQaXC+u06Ffs 023IK1MIZH6o7EZkWZThCc0h/e6V6VTNPCGrbC9v5SZcH7glRvCmgI0XN0kUOBxX jNkPj8IrK0mXAEHmd8GfS9AKWY7kuaN5/njXplmR13K8rPB78Z3Xngws1wwRA0gQ FmuKFhWtxaaQob6bFkuInGmk0O3CLo/DqN0F70hkBzp69HneycRyWSubg2dhOkBw N+qcWNrmofTTFVIWiuBS/TU+TT9RYfS1MUrQIfEZ8rVmMoYdjGu+42n0fIW+XIn5 +ySCME7XGdNXtlyTu3Owi+bkxT0dLifr/plCn4mYo+qZOVINqCBlKQVIj2Rg== 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= 1780373760; x=1780460160; bh=rB0Np6ymwGSGON17w2TOjm2c3tXgmee5h5B DtgEm46U=; b=b3wot7FsuUGnaWawbVzCgbTh8cczyYmkL8BKW88gSVKkFgN+ifx tAL6f5xL4nXtxQ6uZYaLuAD11eDEb8vo7AQxA6IJOPfuIlXsPaNWOml2dVOVriBn E6aoFOoAcvyCsa81bocakn6k2HTudbRdCmZonZPtLR5hJk885S7NTgp0r5ltg2H+ P42qtxzIp/Sb1RS+TUpoN/eNeXiBTYhqzZQrJiGPRDM3fk1zerYnHcGVuwWHXZhM mf7xzI9WXLbVfGy99knS745mBhDmUaG8L+gstkC3epP3nHi6J+OHZBfg1KrHtEVD kUd+K1qjfstxO3sT1S4RMFwDRviE0SJslUw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTE8WVnNhp5SHzCORBbzulI1virz9WEsXFx/oUg0GjlqpSa3PecgaNX2f4gOgucclN FJTzYeaGMU7/YU2AlR5y72Jx1K7zqHmL/e+FY5rbvNlrk/nvgwGjhLzNA0eLApHjhWEmBy liJujv/MThh3NRtj1WNH7AqdF73A5tIH3ls/uEpe7SNmqe5AePURzZs+UA8/T47vxXCwwn yqWI2jqaGYjanZY3KtAGq/eZsckHT22zTnPY8eooe/Db7vqL8kBfeSIpU9KliA4RoxQzkO 0zTVcAGwBxOD2JbQhidxsZF5RmKu4uPPOe+lYsHifSI1wgCtMGm/WXJUDpCz6unbmQBFl0 SGPLeLcUViVFwGz5+9BtNfTFWTv8BI/jIfLLXfwOyuemFZLOSWupOiDLf+5JhZiGATTG6e RDkmbRTpSXWv8GZDkUJgKwlf7d9F7en83ULpKY6D/c3zIEfiK5sP4SVDpXVLyQ4CSMbeK+ /W8fVVdttS3SY0zF+9CrJUZEkFXyUMGj6zoXi3Ln756wtzHZ0WNH5MD+ux8DO44Wq8e/dz pXET2qK9vKd8rFqWb/OmsIChmTZE8AbCFenBJsly8wny1FbRrGnqDbYoYVAH5utgkwcsh0 7jpcV0zXh6KyOoxGh7XQcQpsUQS6vGdw45deSHAVzVW+stddm39T1fDk1ZaQ X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 2 Jun 2026 00:15:58 -0400 (EDT) Date: Tue, 2 Jun 2026 13:15:55 +0900 From: Michael Paquier To: Andrey Borodin Cc: Robert Haas , Postgres hackers , Heikki Linnakangas Subject: Re: injection_points: Switch wait/wakeup to use atomics rather than latches Message-ID: References: <46821C66-E6B2-420D-BB83-E20EF36665B8@yandex-team.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KU8JUpeRZD3GwWoT" Content-Disposition: inline In-Reply-To: <46821C66-E6B2-420D-BB83-E20EF36665B8@yandex-team.ru> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --KU8JUpeRZD3GwWoT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 01, 2026 at 04:25:40PM +0500, Andrey Borodin wrote: > The shared memory segment must be released before we attempt recovery. > But that's exactly what I wanted anyway. Thank you! How do you guarantee that a wait position is reached in the case where you don't have access to wait events to make sure that the wait point is reached? -- Michael --KU8JUpeRZD3GwWoT Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmoeWPsACgkQnvQgOdby QH1nSw/+MGcBXgqfYAfq7KJkp61fpdEYQSIkpNSm8kbaA5oCQo54KNLxH2eUj1bV itl0RV6aQqtl96jopVGrZXyQjYKSfy26YHA9ovNMWY41O0nDhX7+30iYYTwdPD5q lVOaN3sEm2CLSwyzjo1YH0ImRe5JzTw4I1IrY87gFNshd6O0wCvh3Mv4DLyPAhGi jOH1WI1MicCy/nbaIYpiL65vqIoKU4DfruMStQo0cX6fjjt69Zdoj3d5J64oFLRR LPdnL4oe8LZiMnqVduSjSyUc1kBnc4Y1F4AP6jIj3ozYSrm9Ed5DmMXKMtSvIncU Hle4TjF33NBe73BLLBG0GhSpt7f1ErMPh4a1X2s5m9pj/dW6ZyKtvkRPGR6//Qio pi1OJznEwSWoWUjMcr4hPMNsO1FcVAk5uMdwDXo8s2Yv2MamjLZchJmoKgJOOsIR h8eECCamiuKrWVl/FnyHNxAy9fBzPeoMN8DltXaKuc4mYcPZ5ug+iSCztg9WDORL fMaqXNo01xUtCIQoXVSB3+A3JtDD11tZH6mJ2sjhxncp3L27G0KS5YsqqnjkA9oT byKtKKn0ASjSEGY3moVFLo1hBM40kB3hb3Lc1rvBYoV4Sxk/PzwHefUwLUwzJ6R4 X/Brpq4U9Lu9uDNf2jyVMrzKlR0rBLATBOpYJgXV7/iobpBPGyQ= =IaCl -----END PGP SIGNATURE----- --KU8JUpeRZD3GwWoT--