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 1j0q1d-0003S9-Vo for pgsql-committers@arkaria.postgresql.org; Sun, 09 Feb 2020 17:05:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j0q1c-0001ug-Ok for pgsql-committers@arkaria.postgresql.org; Sun, 09 Feb 2020 17:05:40 +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 1j0q1c-0001uY-Dy for pgsql-committers@lists.postgresql.org; Sun, 09 Feb 2020 17:05:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j0q1X-0000oP-6U; Sun, 09 Feb 2020 17:05:39 +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 019H5W2G031241; Sun, 9 Feb 2020 12:05:32 -0500 From: Tom Lane To: Alexander Korotkov cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix page modification outside of critical section in GIN In-reply-to: <21620.1581098806@sss.pgh.pa.us> References: <21620.1581098806@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 07 Feb 2020 13:06:46 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31239.1581267932.1@sss.pgh.pa.us> Date: Sun, 09 Feb 2020 12:05:32 -0500 Message-ID: <31240.1581267932@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Alexander Korotkov writes: >> Fix page modification outside of critical section in GIN > I happened to notice, while reviewing stuff for the release notes, > that this patch does not do what the commit message says. The > previous code modified the pd_prune_xid of the "dBuffer" page, > but now it's modifying the pd_prune_xid of the "lBuffer" page. > Is that actually correct? Since we're rapidly approaching the wrap deadline for this week's releases, I took it upon myself to review this code more carefully, and concluded that indeed it isn't correct. I pushed a fix that moves the GinPageSetDeleteXid call again. regards, tom lane