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 1wEzTZ-004dtL-0l for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Apr 2026 01:00:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEzTY-0058oo-1n for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Apr 2026 01:00:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wEzTX-0058og-2h for pgsql-hackers@lists.postgresql.org; Tue, 21 Apr 2026 01:00:28 +0000 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wEzTU-00000002DWW-3vWY for pgsql-hackers@postgresql.org; Tue, 21 Apr 2026 01:00:27 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id 8E7B07A017A; Mon, 20 Apr 2026 21:00:22 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Mon, 20 Apr 2026 21:00:22 -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=1776733222; x=1776819622; bh=UNcEXizs4o GrohcwWT1jtMfem42vDtjBOlCkDiv15l0=; b=ETRcAW08j5jtMI6e6e/gAMRwa7 cM2Dq9JB05Ey16i6VVzsO8n6J81pfqvK2Mm3gB7E+JqntyAfJg/3OApqvTBtu1qe QLjgm25pglyOqcJhFhxoln52nhn8+KtkvOZ9Hv1zrTbLOFDpUtSvOYC0kvn12n0c 7cMdUdzAAXh1cO1wBvus5r8NLCVDovlNbJnmgPX+4M0JCMaSFzfsGjPTzO5/eA2B jfutEHrWzrWQUS7Mn5VMEy//WhX28FlSGd7m2Y5ajVfZTvWAxQQDuIGN4UxbRlpP hnCvIK92Z87F6bQ4xSpn8izNCFbAaco/zawyEvmYR3wH30vPvilFO7gBI+YQ== 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= 1776733222; x=1776819622; bh=UNcEXizs4oGrohcwWT1jtMfem42vDtjBOlC kDiv15l0=; b=fqimJREN3ro33wMBcfRXKYw084SBiMhCgnV313BQIPxBoFFrCjr RoU/ZraCBPVWVHrB79KVWBmhbm0OHTwH2F0FvLLhAwJ4Aa7lVXjrVfSEQHjYnzyO SFqsfHCqhoDhYtXfbbiA6fVkQILoWWMLqk96tR7oYxXE6CRQbM1FPGn5pgvII+6i 6btuiNDSCOkuEja9GTC7aHvLnD/cv9j6VeSnLjvvQVqdwwrv967uayqCADyd5ANw Drjd4ZrgoJwZDLpyyAyWTXmZi0rnk/d5SoL5Jw/3NmLo6SyWhjGvKEVC0jIf4vfX kia59IRETGJuL5l0iB8VnBYOYt4gx7+uEFQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdeitddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeggeff hfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrhihush hhthhifigrrhhirdhslhhgtddusehgmhgrihhlrdgtohhmpdhrtghpthhtohephhhlihhn nhgrkhgrsehikhhirdhfihdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpoh hsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehnohgrhheslhgvrggusghorghtrdgt ohhm X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Apr 2026 21:00:20 -0400 (EDT) Date: Tue, 21 Apr 2026 10:00:16 +0900 From: Michael Paquier To: Ayush Tiwari Cc: Heikki Linnakangas , pgsql-hackers@postgresql.org, "noah@leadboat.com" Subject: Re: [PATCH] postmaster: fix stale PM_STARTUP comment Message-ID: References: <0f462532-9790-4334-b503-4ee522225820@iki.fi> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PUeNO152+YElxQt0" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --PUeNO152+YElxQt0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 20, 2026 at 12:11:45PM +0530, Ayush Tiwari wrote: > Agreed, this is latent since 7ff23c6d277d (v15). I can prepare a > back-branch versions patch for v15..master once the master patch > shape is settled. No need to. I have poked at this problem a bit more, stracing my way as you did, and after more testing across v15~HEAD, I have applied it. For v15, a difference becomes necessary at HandleChildCrash(), or we would begin to fail the shutdown sequence should the startup process have the idea to PANIC. This maps with the changes in v18 and HEAD where this has been replaced by a switch/case. Another thing that I have spent a long time looking at is process_pm_child_exit() and the interference that this could generate for the startup process case, but here as well I did not spot any issue, so I think that we are in the clear. There was also a comment at the top of postmaster.c that incorrectly claimed that the checkpointer and the background writer were only started after switch to PM_RECOVERY, which was wrong. I have tweaked that while on it. That was a good catch overall. -- Michael --PUeNO152+YElxQt0 Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmnmzCAACgkQnvQgOdby QH1Z3A//SDHqx1HzaXZpbGjYv0kjJ4eOJiQuU0TG5bgCwQU9hc9Jg26StbtkON+I Y7Ejt7sjkLj03bL3WdzCU4iV0li4sipA1g8fqW4ih0WVjHM9m5TbXEEa64L6fMYS 9Tr8cyOFxlOAR7oj1g+hPsuzDSUKW7DFcpk/PWeDCDirEihy00i9bJVAjt+gjplN frVI61Mk+7DMtoBLRbL/4MMVUIpdQTviabL5BlfIZ2qCoZOqfsKzVoXefQY0a31A ZcJUUfMREAGKwkqUA48upmJ/+4vzsnSefJeUEAZmUbizZwITCkERdHtZxXIJyjFY Iv7wwboO35NtiZqHS7YqYAbrNwQYhL7PTaSxiZdoyaT3iyEtQqwGye9C6ItqFUS4 Ru4n0ruPLXPn4bElj+T9DuIJFsxsoTr/E+1bn9NekJ8DM0ugRKof47CDL0mprFn3 LVgEdWDJ+sC1MzrLQEThF4cYtrvnA3wjhj1QLb1JLaRsQCM2/V5xf6RatH7Hs/0d gn0xdPysJKdZtUgSeGW1N19o9CS+zxkyQMKFi+IdnomOK9HOdt+57m+5rtwOais4 WDyKsXgpWruQkjXVBljXMFIgU1Gi5qGusc9OLYPQgXpJMr6sO8RNAGf2eXHQ46iw XdVlfo6ZzxNcEnZT9TbJ7DGHWrlGX5XC5Qv/dDdiHV8MbPfUdYc= =jdG9 -----END PGP SIGNATURE----- --PUeNO152+YElxQt0--