Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i7YRC-0004Oa-H1 for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Sep 2019 05:11:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i7YR9-0007dO-90 for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Sep 2019 05:11:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i7YR7-0007cs-Ho for pgsql-bugs@lists.postgresql.org; Tue, 10 Sep 2019 05:11:31 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i7YR0-0001UN-D2 for pgsql-bugs@lists.postgresql.org; Tue, 10 Sep 2019 05:11:28 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2ED55216A6; Tue, 10 Sep 2019 01:11:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 10 Sep 2019 01:11:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=ssaIEOuqWjMPH8lmCWecpbVI9L7 SUuib7yIQ2Xm/J2s=; b=uZjEZIb7LgxAbqLyHOb4QLf62FywAmHCvd3EkUeRBBX rJHCTBCVZflLZuVXXkyh++002hgsDe8kJYHCWuyYqebFCG6cvPH4zi96tI57DdJv GH1GD8ThPmIzxBbxs2vFz83AC/Kqv1Ngo4fNkxmw3sL9f1FJQ3pGDBmfINkI0JiE KIZoFR1lWx5rzHfW1eljOseWC3TkjlnIt+FM2z/Z8wlf4eRZLS4M9Ykli0hVSdQF HdN9pJ1wEfj8zVyu0ZLOJPG4iuLPyW2k1OMt3Apzi/Hw+Dl3nEPV+Ufshf+9eNwl QtzJn4YvipkbfPKoSJh8ujSdoBI+qqza1UcX+6GJveg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ssaIEO uqWjMPH8lmCWecpbVI9L7SUuib7yIQ2Xm/J2s=; b=jpzuNclhi1gtcKD+tpueJv FJs98PrHiHmWLuehNkcY4K5n5zqo1D3SVcrsIeICNkB2Ug6H0NokE42eG9IMD6Ao TSt2RbXqPcb8/wv6Xa7BuwscEf5Kz/PenmwMl6B6tadMn8O9aj/D7d+72ZIVGNI9 VTXovrkEEh4re+aCbhGqy30TH9X9seOHF4cAjbkQquk3MM2nksaN/hNPv20oL4uz GjmfjWvOBYPlgbhkvAQkNzy6InCWzRm9daBh698xqelJcjzkz1QDw9UXiJvYTFDS H2ch0m4qZW7JNkJOn/PhLOlsXmsnAubL13qqbgqIKm0rglXfx9+09BAeRW20g1dw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudekjedgkeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepuddukedrvdeguddrvdehtddrvdeffeenucfrrghr rghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlh hushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (mp76f1fae9.ap.nuro.jp [118.241.250.233]) by mail.messagingengine.com (Postfix) with ESMTPA id 12AFA80063; Tue, 10 Sep 2019 01:11:17 -0400 (EDT) Date: Tue, 10 Sep 2019 14:11:15 +0900 From: Michael Paquier To: Tom Lane Cc: Andrew Dunstan , Andres Freund , Peter Eisentraut , Yuli Khodorkovskiy , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15804: Assertion failure when using logging_collector with EXEC_BACKEND Message-ID: <20190910051115.GB22934@paquier.xyz> References: <28565.1558196308@sss.pgh.pa.us> <20190519004344.GA3653@paquier.xyz> <22995.1558278322@sss.pgh.pa.us> <27719.1558282181@sss.pgh.pa.us> <16df9d01-8b03-2664-a18c-16c40186f5ab@2ndQuadrant.com> <2702.1558289980@sss.pgh.pa.us> <20190520012728.GC1923@paquier.xyz> <1664.1558325417@sss.pgh.pa.us> <7927.1558364465@sss.pgh.pa.us> <31457.1568057723@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4jXrM3lyYWu4nBt5" Content-Disposition: inline In-Reply-To: <31457.1568057723@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --4jXrM3lyYWu4nBt5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Sep 09, 2019 at 03:35:23PM -0400, Tom Lane wrote: > I think this probably is committable now, though of course it'd > be good for somebody to review it (and maybe test on Windows > before it hits the buildfarm?) I have looked at the patch and tested it a bit on Windows with MSVC (TAP, bincheck, etc.), and the logic looks fine. Thanks. Do we need to worry about the port being opened after the external PID file is written though? With some imagination it is possible to imagine that some folks rely on the external PID file to be present before attempting to access Postgres when not using pg_ctl. Still, I would discard that as postmaster.pid gets written before opening the port already. -- Michael --4jXrM3lyYWu4nBt5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl13MHMACgkQnvQgOdby QH2u+g//ahHt35m+f4dBtN4duQSUaZs5zD6qpzSxTsdGUtV25yBnrtRMqitqoIAl uMYOYl/lYVT0DwjKOjy4TJ9Ed25bZ4spomB6h3Gr/zuNpXUpdSgQPz3T879tt10e oHaR56/uyZ6xx+6hs0TlSsVh5+hQp4GziVdxKctRZcQOyi8Vdp/o55Trk73R0sh2 AXSJyRO4gUFD/SPhg+DNqopuBgeErdFct5GWEGHvYXaXgO2odFljMp95lwAsFJh7 B4jRZdFi1aGe7w5NjMejaJHGaJDsTQBcmKZvw4XJ0sBu4tVceHmEiZqlOQ/0699G V+I/kqi9h0NdzkNLqwtEmweDWi+BxYAoYaU465rSP3xKbyyV1NFa5EWavBHdfHYA l8adrIoxMpfU2BTQbB9xbFL3rfTPFZtuykz7JG5cu+AYnQwq1RNxVP4qtRxlvB2i JHHheLWDDI5M/T1Xk4QjLRhPWG4bOxlRsOwTlVJwZUVmgFqKyBjSNw/1hfK927Uu OU4c7/ytcdPV8H/OK1ML1uQcZtrPKXhR0V0YRZWCsGpfKbU0rQigpXqxcVr7b8hF z5DiESVTxttWn1egXsC5yoQ6t6wH2DO+AygSYHFcMizNoyKeztxivwyobnjqQcvU l7ZsE5WrhZSkJo/U/UyfCZlX3watwvzkbazmJ1cS4ZdwB0cTbqs= =VjHa -----END PGP SIGNATURE----- --4jXrM3lyYWu4nBt5--