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 1sEH8Q-000ZEk-Vh for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Jun 2024 23:30:40 +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 1sEH8Q-00DgVY-FW for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Jun 2024 23:30:38 +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.94.2) (envelope-from ) id 1sEH8P-00DgVQ-VB for pgsql-hackers@lists.postgresql.org; Mon, 03 Jun 2024 23:30:38 +0000 Received: from fout1-smtp.messagingengine.com ([103.168.172.144]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sEH8M-002DBl-T9 for pgsql-hackers@lists.postgresql.org; Mon, 03 Jun 2024 23:30:37 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.nyi.internal (Postfix) with ESMTP id AD99F138010F; Mon, 3 Jun 2024 19:30:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 03 Jun 2024 19:30: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=fm1; t=1717457433; x=1717543833; bh=JgBckwZsx0 o+QdClWyc95oHisMPYENA3xCDBxA/gIK8=; b=ILI5uadJ3nst8LMBTWuYWQx7qY gpCq8mfG3JUIngKgY1yvxZ20DNGu2PxxBDAOzgJVJL99UY7jlk5+rOhqgKWhWQce y+ThD94cOlVWRxCkRyWlOrWJsRNXMn0srrwoXtUwN9CViFnsZuTPai9n8Moy2FCP wsNTLmmYuw/32JMRaqKjjzi3wPL4DL9hh2DxXy9wLWDVh4rztJHJELXmzm69lTR5 YejKopK6Zuj5Z3yNiBmJzjExZTJNrQUuU1AK9jWnT5ZglqDNVGtPjPf2KEMInNhr uNe6Rjpp0wSm9SetCI00fp6r9m2GUzWql+BOfow8+QHtuVnEyISePW/Cl2zA== 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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1717457433; x=1717543833; bh=JgBckwZsx0o+QdClWyc95oHisMPY ENA3xCDBxA/gIK8=; b=gI9xUUfK4PCRFkixZTkJXvgkNLpWwfrfmMKR0Q5/LCQl coaTzKy3AFmzibS72g/JXn1YWVG1gLYUrqq+ghM2yPYbcLP9YTZV94EGmN3p9U/2 9jVLC1Ngk56Euu8tMJK8SmaqZa4j1zsfcwlF3lGLybcmJfSbnozh5xvZCQ6JmS92 P5sdpZGYwGZAS3JzvxlnzOpgKctE2MS9FTD0/2Pc0hJiKq2wgHZNplyHWSHr6isM peuiQfvcMAnpj+BJcY2e2Xb/oxi8s3pzbxH0exOqEmKLBlIsjD6wk5S+VAGbXOvB EYs3Zfu1plJq6bFS6+CxtxKYrgSv1WrUci4AykHwwQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdelfedgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Jun 2024 19:30:31 -0400 (EDT) Date: Tue, 4 Jun 2024 08:30:19 +0900 From: Michael Paquier To: Robert Haas Cc: Kyotaro Horiguchi , kuroda.hayato@fujitsu.com, shlok.kyal.oss@gmail.com, pgsql-hackers@lists.postgresql.org, Tom Lane Subject: Re: pg_ctl start may return 0 even if the postmaster has been already started on Windows Message-ID: References: <20231024.172536.511643991820398116.horikyota.ntt@gmail.com> <20240111.173322.1809044112677090191.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NOUu3ZDP67VpPYOh" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --NOUu3ZDP67VpPYOh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jan 15, 2024 at 01:34:46PM -0500, Robert Haas wrote: > This kind of change looks massively helpful to me. I don't know if it > is exactly right or not, but it would have been a big help to me when > writing my previous review, so +1 for some change of this general > type. During a live review of this patch last week, as part of the Advanced Patch Workshop of pgconf.dev, it has been mentioned by Tom that we may be able to simplify the check on pmstart if the detection of the postmaster PID started by pg_ctl is more stable using the WIN32 internals that this patch relies on. I am not sure that this suggestion is right, though, because we should still care about the clock skew case as written in the surrounding comments? Even if that's OK, I would assume that this should be an independent patch, written on top of the proposed v6-0001. Tom, could you comment about that? Perhaps my notes did not catch what you meant. -- Michael --NOUu3ZDP67VpPYOh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmZeUgsACgkQnvQgOdby QH0BIxAAqLPRvYAZWWKPyCVwEGVpaQwpTbWPckr5jgyjnu4zee8fI04uLxUCXwgw n0KLH7Hn3KdobhshCSiSyKApwrC6eisYqOjzJLG3k4mcYhaTSz16aJHIGF2t5c+k pu7N0NVtXqgUAQOvhawGGbudowsf/79zGqOInPk6LLDF3YYF6anvoOdf5yn6XYye QNqjx22aBW898XKjZ6Z0U1q5WmSjqYkANNjUVnuJz7ZJnzwD0b+u29ks0/lZkigg 2EoWM3m5h6+yAoH6czgQFoDOrjtBkYWMT1aqKzJXiLj76wbtWyQ3vap5rQSnXKJn 2poeMhnbQFgDHRDLo5oMlxX8rl8khQpO/sZdI3VCInEOnBMumWSeyOIfiCHhNRgY ZZX84mTIm4/LFz2IQJwLMcN276C83TgdF+HR0SxovDyZg8ny8WNLW5GWiLyN7KwQ UzxjwoxT6Rfjc2ru+0VYkuho5tyqaoFocapIXQI6jaCp743bMTeXRRK7j6bvtS1H ovo3C0zgQ7ZbfIPFuIzhtkzTQOeKr4hrGm4ZDNgNuq8DGOykauO52YjHU1Ftpvxk ioDdykRS9gN4DGc8K0iwn4rUhsRV4S4m0r9Qr3qE6+Ch5mPGiUtaq4moOjSk0GJY TE01V0S8wq4ZQxqjtd4HM6hZodKI3Expz71JrJJGcDSSDEs7k/s= =/MfS -----END PGP SIGNATURE----- --NOUu3ZDP67VpPYOh--