Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPCbA-0000IG-0v for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Jan 2017 18:17:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cPCb9-0005uE-HP for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Jan 2017 18:17:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cPCZj-0004GM-Rw for pgsql-hackers@postgresql.org; Thu, 05 Jan 2017 18:15:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cPCZh-0001t6-8X for pgsql-hackers@postgresql.org; Thu, 05 Jan 2017 18:15:42 +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 v05IFdD0008403; Thu, 5 Jan 2017 13:15:39 -0500 From: Tom Lane To: Robert Haas cc: "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Fix possible crash reading pg_stat_activity. In-reply-to: References: <6989.1483637871@sss.pgh.pa.us> <7931.1483639378@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Thu, 05 Jan 2017 13:09:32 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8401.1483640139.1@sss.pgh.pa.us> Date: Thu, 05 Jan 2017 13:15:39 -0500 Message-ID: <8402.1483640139@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > No, I think backend-lifetime is right. The tranche registrations are > all backend-local state, so there's no problem with backend A > registering a string at one address and backend B registering a string > at a different address. It's just important that neither of those > strings goes away before the corresponding backend does. Then I don't understand what's going on. Isn't the crash you fixed because backend A was looking at the tranche containing the lock backend B was blocked on? How can a tranche name local to backend B work? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers