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

Commita44dd93

Browse files
committed
Fix masking of SP-GiST pages during xlog consistency check
spg_mask() didn't take into account that pd_lower equal to SizeOfPageHeaderDatais still valid value. This commit fixes that. Backpatch to 11, wherespg_mask() pg_lower check was introduced.Reported-by: Michael PaquierDiscussion:https://postgr.es/m/20200615131405.GM52676%40paquier.xyzBackpatch-through: 11
1 parent15cb2bd commita44dd93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/access/spgist/spgxlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,6 @@ spg_mask(char *pagedata, BlockNumber blkno)
10081008
* Mask the unused space, but only if the page's pd_lower appears to have
10091009
* been set correctly.
10101010
*/
1011-
if (pagehdr->pd_lower>SizeOfPageHeaderData)
1011+
if (pagehdr->pd_lower >=SizeOfPageHeaderData)
10121012
mask_unused_space(page);
10131013
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp