mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Attempting to use this function with a raw page not coming from a GiST
index would cause a crash, as it was missing the same sanity checks as
gist_page_items_bytea(). This slightly refactors the code so as all the
basic validation checks for GiST pages are done in a single routine,
in the same fashion as the pageinspect functions for hash and BRIN.
This fixes an issue similar to
|
||
---|---|---|
.. | ||
expected | ||
sql | ||
.gitignore | ||
brinfuncs.c | ||
btreefuncs.c | ||
fsmfuncs.c | ||
ginfuncs.c | ||
gistfuncs.c | ||
hashfuncs.c | ||
heapfuncs.c | ||
Makefile | ||
meson.build | ||
pageinspect--1.0--1.1.sql | ||
pageinspect--1.1--1.2.sql | ||
pageinspect--1.2--1.3.sql | ||
pageinspect--1.3--1.4.sql | ||
pageinspect--1.4--1.5.sql | ||
pageinspect--1.5--1.6.sql | ||
pageinspect--1.5.sql | ||
pageinspect--1.6--1.7.sql | ||
pageinspect--1.7--1.8.sql | ||
pageinspect--1.8--1.9.sql | ||
pageinspect--1.9--1.10.sql | ||
pageinspect--1.10--1.11.sql | ||
pageinspect--1.11--1.12.sql | ||
pageinspect.control | ||
pageinspect.h | ||
rawpage.c |