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 1nugJO-00073C-9S for pgsql-hackers@arkaria.postgresql.org; Fri, 27 May 2022 20:11:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nugJM-000151-U8 for pgsql-hackers@arkaria.postgresql.org; Fri, 27 May 2022 20:11:52 +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 1nugJM-00014s-KX for pgsql-hackers@lists.postgresql.org; Fri, 27 May 2022 20:11:52 +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 1nugJK-0000H8-5x for pgsql-hackers@postgresql.org; Fri, 27 May 2022 20:11:51 +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 24RKBi2O2728963; Fri, 27 May 2022 16:11:44 -0400 From: Tom Lane To: Robert Haas cc: Thomas Munro , Noah Misch , Andres Freund , CM Team , pgsql-hackers Subject: Re: "ERROR: latch already owned" on gharial In-reply-to: References: <20220525012439.pkrfb7zh276jdmyq@alap3.anarazel.de> <20220525064658.GA3123194@rfd.leadboat.com> <1921928.1653488733@sss.pgh.pa.us> <2085124.1653532506@sss.pgh.pa.us> <2643515.1653661311@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Fri, 27 May 2022 15:44:44 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2728961.1653682304.1@sss.pgh.pa.us> Date: Fri, 27 May 2022 16:11:44 -0400 Message-ID: <2728962.1653682304@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > On Fri, May 27, 2022 at 10:21 AM Tom Lane wrote: >> What I'd suggest is to promote that failure to elog(PANIC), which >> would at least give us the PID and if we're lucky a stack trace. > That proposed change is fine with me. > As to the question of whether it's a real bug, nobody can prove > anything unless we actually run it down. Agreed, and I'll even grant your point that if it is an HPUX-specific or IA64-specific bug, it is not worth spending huge amounts of time to isolate. The problem is that we don't know that. What we do know so far is that if it can occur elsewhere, it's rare --- so we'd better be prepared to glean as much info as possible if we do get such a failure. Hence my thought of s/ERROR/PANIC/. And I'd be in favor of any other low-effort change we can make to instrument the case better. regards, tom lane