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 1j1BXc-0005UH-E8 for pgsql-committers@arkaria.postgresql.org; Mon, 10 Feb 2020 16:04:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j1BXb-00070j-9U for pgsql-committers@arkaria.postgresql.org; Mon, 10 Feb 2020 16:04:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j1BXa-0006x9-QO for pgsql-committers@lists.postgresql.org; Mon, 10 Feb 2020 16:04:07 +0000 Received: from cyclops.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1j1BXX-0004KP-Nd for pgsql-committers@lists.postgresql.org; Mon, 10 Feb 2020 16:04:06 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id EE6DB21C4D4A for ; Mon, 10 Feb 2020 19:04:01 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (not verified)) by mail.postgrespro.ru (Postfix) with ESMTPSA id 5BEE221C4D49 for ; Mon, 10 Feb 2020 19:04:01 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1581350641; bh=4US1gDd3yL3KchnI9ObZ5ZBe+d+sLDLTRMTlqqA6ABg=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=H0p3Z7dn5dNIiOCgzUTZXgwjd4Xtxdt+zzI7oCXUKJqRErTTBsO4NlbhO+27gjoLT 5XqhH/vGxP/vZMp28QZzK03Yzz6IWkyArcbebMJJOln3AJNepglM/lribt9DoNxP10 /eHIIDzZQ3Tpl7LEZeNDgPcRMeSsWel+CQZ5xj3c= Received: by mail-il1-f173.google.com with SMTP id o13so635315ilg.10 for ; Mon, 10 Feb 2020 08:04:01 -0800 (PST) X-Gm-Message-State: APjAAAWGQFm5eOMGZxgQ6LCsjZEomTPN7ZE+VDgB0pI1l69Dv8hJfRra a/LGJsmIvYK3pB2yY9cJID+lANgM6lnqntnccfs= X-Google-Smtp-Source: APXvYqzAD5xtCEK8zPq/XVi7NPU0vgkrXqb1LP4du2VJO45iElt76+vlb6/5NjHwA5aS6wvOV915RNr80jBmFhvpG5M= X-Received: by 2002:a92:9f4e:: with SMTP id u75mr2000892ili.116.1581350639487; Mon, 10 Feb 2020 08:03:59 -0800 (PST) MIME-Version: 1.0 References: <21620.1581098806@sss.pgh.pa.us> <31240.1581267932@sss.pgh.pa.us> In-Reply-To: <31240.1581267932@sss.pgh.pa.us> From: Alexander Korotkov Date: Mon, 10 Feb 2020 19:03:48 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: pgsql: Fix page modification outside of critical section in GIN To: Tom Lane Cc: Alexander Korotkov , pgsql-committers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sun, Feb 9, 2020 at 8:05 PM Tom Lane wrote: > > 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. Sorry for delayed response. Yes, my fix for oversight contain oversight itself. I confirm the fix you've committed is correct. Thank you! ------ Alexander Korotkov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company