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 1hxRnc-00014Z-7m for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Aug 2019 08:04:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hxRnb-0003UW-1o for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Aug 2019 08:04:55 +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 1hxRnZ-0003UO-AZ for pgsql-hackers@lists.postgresql.org; Tue, 13 Aug 2019 08:04:54 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hxRnW-0003KQ-AQ for pgsql-hackers@lists.postgresql.org; Tue, 13 Aug 2019 08:04:52 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 7745743D; Tue, 13 Aug 2019 04:04:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 13 Aug 2019 04:04:48 -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=fyfFGdESBODc/MF1RUVsXYYWUpS 9lILdz2Sqxzl9gYo=; b=LHVVlrXk2fwchIu70GWkH7lzGZq8OZyyEOOUuXYadYS Iq7OjBIugiD1EZ74zffH5b/yedZgcrT/yzky8l8VSrFdxnokbtkUdXpGg+r+DDUC aWarUN6p+L8eEjxAUI+yXuzEDJW2+p7WDEM+G/zKuR1fcr7yvkEc1CleTXyIxaWX e25ej1f/n5jr5p80F6KiJ1jjLv5Q9Tn1Tg9iMPh8rUzP5tZXceWH8ONaz1YfTS/r JJXfQuzCRP0X5Bd5M/ioqBwDIxvP/x4+9IDV/7KfwxmfIwMwXdjtMDXYXgJeq87F xsy5ha/MUB1h/43GaAmlpcjkNhD8Vh2+TMfeKhOQqCQ== 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=fyfFGd ESBODc/MF1RUVsXYYWUpS9lILdz2Sqxzl9gYo=; b=FOfNZ5qAtY9Y2RKmlH66ZD GBRMKkLIFlX6AZncTL57RnXbuMA8wkRbp0Z1dk5hpKfSgWt3Oh1La0yloqqh0mNw bEEjkUUNClvCPw7tFx8pKEU1cN/pxSlsSeUPVO9tp4/nJHyjqfL3TcKtSd9g6Cyt 6KuhqNngiGssmaKmcV9gxJ8CdHd3tTSCza8OFbz1C58AyuLEh+r5MJX9QL8e7zBU Lua19WoIp4Pf5JDgHeYam3RqfkUZ3r3cIDEwr71hX+ckkVt3dUuMtihmtEWzIk83 qIlfr5CoOWEV8T/M8uwuXFBaouZ/owsXPNPUh6TR6pKmKEA3yef/Hoi3So5E3RZw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddruddvhedguddviecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecukfhppeduudekrddvgedurddvgeelrdelfeenucfrrghr rghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlh hushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (mp76f1f95d.ap.nuro.jp [118.241.249.93]) by mail.messagingengine.com (Postfix) with ESMTPA id EF156380079; Tue, 13 Aug 2019 04:04:44 -0400 (EDT) Date: Tue, 13 Aug 2019 17:04:35 +0900 From: Michael Paquier To: Andres Freund Cc: Thomas Munro , Tom Lane , PostgreSQL Hackers Subject: Re: subscriptionCheck failures on nightjar Message-ID: <20190813080435.GL2551@paquier.xyz> References: <20190213171101.6wpz7tardp3t3uvk@alap3.anarazel.de> <29708.1550079455@sss.pgh.pa.us> <20190213174151.mfylkessxmapt4io@alap3.anarazel.de> <30608.1550080759@sss.pgh.pa.us> <20190213181225.fathyapig4sm4exa@alap3.anarazel.de> <31663.1550082243@sss.pgh.pa.us> <20190213183303.ns54frt7cmvo6pgg@alap3.anarazel.de> <1466.1550085086@sss.pgh.pa.us> <20190213215147.cjbymfojf6xndr4t@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NZtAI5QFBF0GmLcW" Content-Disposition: inline In-Reply-To: <20190213215147.cjbymfojf6xndr4t@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --NZtAI5QFBF0GmLcW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 13, 2019 at 01:51:47PM -0800, Andres Freund wrote: > I'm not yet sure that that's actually something that's supposed to > happen, I got to spend some time analysing how this actually > happens. Normally the contents of the slot should actually prevent it > from being removed (as they're newer than > ReplicationSlotsComputeLogicalRestartLSN()). I kind of wonder if that's > a bug in the drop logic in newer releases. In the same context, could it be a consequence of 9915de6c which has introduced a conditional variable to control slot operations? This could have exposed more easily a pre-existing race condition. -- Michael --NZtAI5QFBF0GmLcW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl1SbxMACgkQnvQgOdby QH3+fA/+ObXptZJOR4uPynamPNjcw9DG5ybxIdl4saYpRxjOxW6pbmbsKJCnQBNV Y0Ubpry3DAMgUTHGsyNkx/HjfP59tkQjaNyBLnx7Ieqn9ZXhtZaZpWjU6DsfsQuS FwgcXYa98JwATCFgSPpZWBqQxEHVBzNRwKZFppR/g/cIKSKAUYCO3QwEN+oiql6l CBqH+gDdBvgaQkga1SDyPDO5+PXBxB550aqjAHvyDr11YWLvKt9Mo3EtLqsK49Jl pUXR8t9YNeVhX+KidP5yKETXIJ4oiVblRKMt/3wv/JFVsReisU6uzCEl3Wyb/Nbl rbYYGhh34uSCbl59ok6rLFTAUkJ9QKeqCq0V8C9uQFHUQrZKRwN6ggmibZlfhzq5 ffan20o9EHNOndtFLvPBmXf5GSv0xDMQ3EdG900qfoVNHwPojXGLegz5fwZCuHH5 D3DfdvLWUJuPXPGywd9a6AQORGC6VPODxexBICOLCe73m3RLSrp1yxe8s2IPZCJm b7cdFFjYOd37JrkQyjlMxDLBnVzAybIO9/eoESBW+jbysogAgTjezbuxOpe3/bSi 52lm5OGd1UmwZl5yE/aIVhnqa/ThOUPXJtTA2cOauLbxBmOxrOceAhRo+Hlw5xkD MQVJXExzhOQLXDmXRx5hFaqcCHU5XJH26HVwc0NBi9P231ZfK1c= =aQH6 -----END PGP SIGNATURE----- --NZtAI5QFBF0GmLcW--