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

From Alexander Korotkov
Subject pgsql: Fix masking of SP-GiST pages during xlog consistency check
Date
Msg-id E1jmec9-0004Vu-Nx@gemulon.postgresql.org
Whole thread Raw
List 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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a44dd932ff3816de7fe0414063cfcc5656117c3a

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


pgsql-committers by date:

Previous
From: Alexander Korotkov
Date:
Subject: pgsql: Add documentation for opclass options
Next
From: Alexander Korotkov
Date:
Subject: pgsql: Fix masking of SP-GiST pages during xlog consistency check