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

Enterprise / PostgreSQL - Amit Kapila [postgresql.org] - 4 September 2018 03:05 EDT

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

7c9e19ca9a During the split, set checksum on an empty hash index page.
src/backend/access/hash/hashpage.c | 1 +
1 file changed, 1 insertion(+)

Upstream: git.postgresql.org


  • Share