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 1hR7VO-0005me-OR for pgsql-bugs@arkaria.postgresql.org; Thu, 16 May 2019 03:56:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hR7VN-0004fO-5B for pgsql-bugs@arkaria.postgresql.org; Thu, 16 May 2019 03:56:29 +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 1hR7VM-0004dj-1X for pgsql-bugs@lists.postgresql.org; Thu, 16 May 2019 03:56:28 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hR7VI-000323-QR for pgsql-bugs@lists.postgresql.org; Thu, 16 May 2019 03:56:26 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 07F312A9; Wed, 15 May 2019 23:56:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 15 May 2019 23:56:23 -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=fm1; bh=hWb/8jj6UoSh0BmHSB0tvK6Tl/A PpmCpzdV2znS1kwY=; b=iuZHa/UtRHw0t9DDRLq3y2E+tNK1z2SETzUqoNrSULV BC3IxqUwpAxYDBBrkOS6BIic1ouiHq4dhFVqyezptzt+vWHs3mw3e1YGkiwuEAqT 4FuQzBv5nH5d7PIFh8SofhU8HarptRuIIC/5YwHVbeeDjdjbGDLdALBymlEB5v7F lTfDGBglPdehvXD6b71tR7YJuIuSf9VVqDchpQ15zfKsEODkJofzlnqLiMYWNzk9 TNtQ3tdvm/UgHxjAm/zueIZquF4XxI0GkJwycHU0lz8Cjfa0huenxGqKnKKEKo5p b5gI/apSz5bx+mu6lLkDvlwSwP6qHeeM2Lb0IVmYLIQ== 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=fm2; bh=hWb/8j j6UoSh0BmHSB0tvK6Tl/APpmCpzdV2znS1kwY=; b=K6bHhvAv6yZ5FRT5YkyDZC cpgExWRxCsrZK8zFkaOpsFeZ2THpywa3GheOVAtrCiHZf+5gRpQOHvdAHLMjy7yD NDfEzvzoJ0gfOB0/goFqfKl/luADKEtRRX3EtGD710hREDY/6VPAAoL4OFyNsdIL jpBWuTOFqli9191rjGNviHCi/5i04OLbt5oxMbAQhbhLd7sw2wPt/jczczwUdNLO 3hq/kX0dGJE/Fr5tyup3ahQ1uQ9HigYpmRoR7zPPzq6VzKHduJSoV73+OmIezwJI myenlnW67lmRcmxLvLlagR2rztbjj/SQ+LR24LXyk3qTrma1iZmPDlgWLsgTuybg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrleelgdejiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id A571D10378; Wed, 15 May 2019 23:56:20 -0400 (EDT) Date: Thu, 16 May 2019 12:56:17 +0900 From: Michael Paquier To: Tom Lane Cc: Yuli Khodorkovskiy , pgsql-bugs@lists.postgresql.org, Peter Eisentraut Subject: Re: BUG #15804: Assertion failure when using logging_collector with EXEC_BACKEND Message-ID: <20190516035617.GC1415@paquier.xyz> References: <15804-3721117bf40fb654@postgresql.org> <27CD45B5-88F7-4A09-8B31-EFE41FC37FE1@crunchydata.com> <26332.1557863524@sss.pgh.pa.us> <20190515073125.GA1517@paquier.xyz> <4643.1557931189@sss.pgh.pa.us> <20190516013808.GA1415@paquier.xyz> <20190516021903.GB1415@paquier.xyz> <28927.1557977558@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fXStkuK2IQBfcDe+" Content-Disposition: inline In-Reply-To: <28927.1557977558@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --fXStkuK2IQBfcDe+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 15, 2019 at 11:32:38PM -0400, Tom Lane wrote: > Michael Paquier writes: > > Also, I am noticing another consequence as the handling of backend > > variable files also suffers consequences: > > could not open backend variables file > > "pgsql_tmp/pgsql_tmp.backend_var.21912.1": No such file or directory >=20 > Um ... where/how are you seeing that? On HEAD with EXEC_BACKEND, just like that: $ cd src/bin/pg_ctl && PROVE_TESTS=3Dt/004_logrotate.pl make check $ cat tmp_check/log/004_logrotate_primary.log 2019-05-16 12:44:03.427 JST [26433] LOG: redirecting log output to logging collector process 2019-05-16 12:44:03.427 JST [26433] HINT: Future log output will appear in directory "log". could not open backend variables file "pgsql_tmp/pgsql_tmp.backend_var.26433.1": No such file or directory The test is able to pass, but we have a race condition between the moment the backend file gets saved and the moment we allow it to be read. I have not spent much time checking the stack between InitializeMaxBackends() and RemovePgTempFiles() in postmaster.c, but 57431a9 triggers the failure. -- Michael --fXStkuK2IQBfcDe+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlzc32EACgkQnvQgOdby QH1NDg//WREVRAmC21nkPv0ESZN3sPplRp1BMnkD91TcxbWlebIPqtV1JY+dC/t6 Fds/oi9SIiD+/utw701FqWA0Ud/YqRYZeT6RNULlhxf6h5O+wBLI+LR5xPzlM0gf YpUPOZqZw4jKyeXG6bOjz4vWiVM6mv/aY7R5hTQY6xZ7VXtlWaAlBppDAvNjTF3V EZkX7vK2UnYmEwRFs7GLCJMxQxJHUw0n1WmhQFsevSSdH6D/EXYLRwGpAFaoqkZ1 JfVk1nkIfzcd5FvKJk+uMxeVN2dAXRuhiojIfNzRMyN198ubOSQrjIB9YOqE910L CMt9qcQiz6NX27YxGYj8Rwenc6bfE77x/bNhfR36Z0zctgKyg5yReltgu9nRQK81 s2QmTpTF5XeE5xbAFbiv/QhqE3PMt7ziHtGImksQJY76mOLO/2zsxChPV5CSxQk5 9JHcIE+jAmVIoxuxy765sxY1Mo6MDbD1+4g0/O9WEAFHlcQUm9sI8VtVYW3Y4BJ+ 4WyMEwLZLz1WEVn3UhRVpuK6EOvnqXvIk/H6jUjRhsGTgIudYIvCevxTSACXuvC9 iF64cPRli7v8QHnCcho3G7iqNfIznII5bMH/T8Frkqbih8qcl+GNFRlJh2e7DP0A L6+Wbk3iUWiVSaqmvWN4lUplcg2PPPXuL9C3xyITT2Xw4svYFlY= =Jaut -----END PGP SIGNATURE----- --fXStkuK2IQBfcDe+--