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 1k8BGM-00086A-GF for pgsql-committers@arkaria.postgresql.org; Tue, 18 Aug 2020 23:43: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 1k8BGL-00007Q-Bn for pgsql-committers@arkaria.postgresql.org; Tue, 18 Aug 2020 23:43:29 +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 1k8BGL-00006L-5u for pgsql-committers@lists.postgresql.org; Tue, 18 Aug 2020 23:43:29 +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 1k8BGJ-00071e-4o for pgsql-committers@lists.postgresql.org; Tue, 18 Aug 2020 23:43:28 +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 07INhOct1355916; Tue, 18 Aug 2020 19:43:24 -0400 From: Tom Lane To: Andres Freund cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix race condition in snapshot caching when 2PC is used. In-reply-to: References: Comments: In-reply-to Andres Freund message dated "Tue, 18 Aug 2020 23:37:43 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1355914.1597794204.1@sss.pgh.pa.us> Date: Tue, 18 Aug 2020 19:43:24 -0400 Message-ID: <1355915.1597794204@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > Fix race condition in snapshot caching when 2PC is used. Uh, is it really okay to modify that variable with only shared ProcArrayLock? regards, tom lane