pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: During the split, set checksum on an empty hash index page.
Date: Tue, 04 Sep 2018 03:25:11 +0000
Message-ID: <E1fx1xn-0005iy-Fr@gemulon.postgresql.org> (raw)

During the split, set checksum on an empty hash index page.

On a split, we allocate a new splitpoint's worth of bucket pages wherein
we initialize the last page with zeros which is fine, but we forgot to set
the checksum for that last page.

We decided to back-patch this fix till 10 because we don't have an easy
way to test it in prior versions.  Another reason is that the hash-index
code is changed heavily in 10, so it is not advisable to push the fix
without testing it in prior versions.

Author: Amit Kapila
Reviewed-by: Yugo Nagata
Backpatch-through: 10
Discussion: https://postgr.es/m/5d03686d-727c-dbf8-0064-bf8b97ffe850@2ndquadrant.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3b7a96a619f78f80b4a470a0dcde4c92b5b7141f

Modified Files
--------------
src/backend/access/hash/hashpage.c | 1 +
1 file changed, 1 insertion(+)



view thread (3+ messages)

Message-ID: <E1fx1xn-0005iy-Fr@gemulon.postgresql.org>
Permalink:  ../E1fx1xn-0005iy-Fr@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fx1xn-0005iy-Fr@gemulon.postgresql.org

 · 

reply

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: akapila@postgresql.org
  Subject: Re: pgsql: During the split, set checksum on an empty hash index page.
  In-Reply-To: <E1fx1xn-0005iy-Fr@gemulon.postgresql.org>
  References: <E1fx1xn-0005iy-Fr@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