Fix masking of SP-GiST pages during xlog consistency check
authorAlexander Korotkov <akorotkov@postgresql.org>
Sat, 20 Jun 2020 14:34:51 +0000 (17:34 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Sat, 20 Jun 2020 15:14:51 +0000 (18:14 +0300)
commit39aafc88c4b4ac281df8b2c2b8be72d4e4d99e9f
tree4e9fb519e2058af184f6c148fe5c8a504c6d0585
parente6c6f427e356e3706ce2f0ae7e7e94e5501bbc13
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
src/backend/access/spgist/spgxlog.c