Fix masking of SP-GiST pages during xlog consistency check

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 3f88e2d78dbe61b8eec8dfb051b9dc0d1ff0052f
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2020-06-20T14:35:59Z
Releases: 11.9
Fix masking of SP-GiST pages during xlog consistency check

spg_mask() didn't take into account that pd_lower equal to SizeOfPageHeaderData
is still valid value.  This commit fixes that.  Backpatch to 11, where
spg_mask() pg_lower check was introduced.

Reported-by: Michael Paquier
Discussion: https://postgr.es/m/20200615131405.GM52676%40paquier.xyz
Backpatch-through: 11

Files

PathChange+/−
src/backend/access/spgist/spgxlog.c modified +1 −1

Discussion