pgsql: Fix masking of SP-GiST pages during xlog consistency check

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix masking of SP-GiST pages during xlog consistency check
Date: 2020-06-20 14:37:12
Message-ID: E1jmecK-0004X0-6g@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3f88e2d78dbe61b8eec8dfb051b9dc0d1ff0052f

Modified Files
--------------
src/backend/access/spgist/spgxlog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2020-06-20 14:46:12 Re: git.postgresql.org ok?
Previous Message Alexander Korotkov 2020-06-20 14:37:08 pgsql: Fix masking of SP-GiST pages during xlog consistency check