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 1gu2IY-0002m4-CD for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Feb 2019 21:42:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gu2IW-00016m-Tb for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Feb 2019 21:42:28 +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 1gu2IW-00016b-Il for pgsql-hackers@lists.postgresql.org; Wed, 13 Feb 2019 21:42:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gu2IT-0002VH-ID for pgsql-hackers@lists.postgresql.org; Wed, 13 Feb 2019 21:42:26 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x1DLgKx6024824; Wed, 13 Feb 2019 16:42:20 -0500 From: Tom Lane To: Thomas Munro cc: Andres Freund , PostgreSQL Hackers Subject: Re: subscriptionCheck failures on nightjar In-reply-to: References: <17827.1549866683@sss.pgh.pa.us> <27965.1550077052@sss.pgh.pa.us> <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> Comments: In-reply-to Thomas Munro message dated "Thu, 14 Feb 2019 09:52:33 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24822.1550094140.1@sss.pgh.pa.us> Date: Wed, 13 Feb 2019 16:42:20 -0500 Message-ID: <24823.1550094140@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > I found 3 examples of this failing with an ERROR (though not turning > the BF red, so nobody noticed) before the PANIC patch went in: Yeah, I suspected that had happened before with less-obvious consequences. Now that we know where the problem is, you could probably make it highly reproducible by inserting a sleep of a few msec between the rename and the second fsync. regards, tom lane