Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1neLpS-0000mG-E5 for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2022 19:05:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1neLpQ-00073O-Dm for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2022 19:05:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1neLpQ-00073F-4k for pgsql-hackers@lists.postgresql.org; Tue, 12 Apr 2022 19:05:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1neLpN-00086f-PN for pgsql-hackers@postgresql.org; Tue, 12 Apr 2022 19:05:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 23CJ5M1U907761; Tue, 12 Apr 2022 15:05:22 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org, Thomas Munro Subject: Re: failures in t/031_recovery_conflict.pl on CI In-reply-to: <20220412184913.3wrt4olkdiqvicsj@alap3.anarazel.de> References: <20220409045515.35ypjzddp25v72ou@alap3.anarazel.de> <20220409050501.frejv2i46m54keem@alap3.anarazel.de> <20220409220054.fqn5arvbeesmxdg5@alap3.anarazel.de> <20220409231002.mddrr7mtca7p55v5@alap3.anarazel.de> <20220409233107.v7okovwr46xsizfk@alap3.anarazel.de> <5111.1649547266@sss.pgh.pa.us> <20220412184913.3wrt4olkdiqvicsj@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Tue, 12 Apr 2022 11:49:13 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <907759.1649790322.1@sss.pgh.pa.us> Date: Tue, 12 Apr 2022 15:05:22 -0400 Message-ID: <907760.1649790322@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2022-04-09 19:34:26 -0400, Tom Lane wrote: >> +1. This is probably more feasible given the latch infrastructure >> than it was when that code was first written. > What do you think about just reordering the disable_all_timeouts() to be > before the got_standby_deadlock_timeout check in the back branches? I think > that should close at least the most obvious hole. And fix it properly in > HEAD? I don't have much faith in that, and I don't see why we can't fix it properly. Don't we just need to have the signal handler set MyLatch, and then do the unsafe stuff back in the "if (got_standby_deadlock_timeout)" stanza in mainline? regards, tom lane