From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix checksum calculation in the new sorting GiST build.
Date: Mon, 21 Sep 2020 11:57:48 +0000
Message-ID: <E1kKKS4-0006Gy-Bd@gemulon.postgresql.org> (raw)
Fix checksum calculation in the new sorting GiST build.
Since we're bypassing the buffer manager, we need to call
PageSetChecksumInplace() directly. As reported by Justin Pryzby.
In the passing, add RelationOpenSmgr() calls before all smgrwrite() and
smgrextend() calls. Tom added one before the first smgrextend() call in
commit c2bb287025, which seems to be enough, but let's play it safe and
do it before each one. That's how it's done in the similar code in
nbtsort.c, too.
Discussion: https://www.postgresql.org/message-id/20200920224446.GF30557@telsasoft.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c47a240fe6db8293e2de1565233faee40afa64b6
Modified Files
--------------
src/backend/access/gist/gistbuild.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: heikki.linnakangas@iki.fi
Subject: Re: pgsql: Fix checksum calculation in the new sorting GiST build.
In-Reply-To: <E1kKKS4-0006Gy-Bd@gemulon.postgresql.org>
References: <E1kKKS4-0006Gy-Bd@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox