]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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 14:35:55 +0000 (17:35 +0300)
commit396a44a0153657bd4f5385b184b66b7ada8682ca
tree7e755a893016661a8059e964c8c9b8b4373c746d
parent5b52008a64414cd161db11f4c0d52fc0d2ee304a
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