Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit16e7bcf

Browse files
author
Amit Kapila
committed
During the split, set checksum on an empty hash index page.
On a split, we allocate a new splitpoint's worth of bucket pages whereinwe initialize the last page with zeros which is fine, but we forgot to setthe checksum for that last page.We decided to back-patch this fix till 10 because we don't have an easyway to test it in prior versions. Another reason is that the hash-indexcode is changed heavily in 10, so it is not advisable to push the fixwithout testing it in prior versions.Author: Amit KapilaReviewed-by: Yugo NagataBackpatch-through: 10Discussion:https://postgr.es/m/5d03686d-727c-dbf8-0064-bf8b97ffe850@2ndquadrant.com
1 parentbd47c4a commit16e7bcf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/backend/access/hash/hashpage.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,7 @@ _hash_alloc_buckets(Relation rel, BlockNumber firstblock, uint32 nblocks)
10381038
true);
10391039

10401040
RelationOpenSmgr(rel);
1041+
PageSetChecksumInplace(page,lastblock);
10411042
smgrextend(rel->rd_smgr,MAIN_FORKNUM,lastblock,zerobuf.data, false);
10421043

10431044
return true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp