pgsql: During the split, set checksum on an empty hash index page. - Mailing list pgsql-committers

From Amit Kapila
Subject pgsql: During the split, set checksum on an empty hash index page.
Date
Msg-id E1fx1xn-0005iv-Fh@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7c9e19ca9a4de6eb98582548ec6dd0d83fc5ac2d

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


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Remove pg_constraint.conincluding
Next
From: Amit Kapila
Date:
Subject: pgsql: Prohibit pushing subqueries containing window functioncalculati