pgsql: pageinspect: Fix crash with gist_page_items()

2023-03-01 Thread Michael Paquier
pageinspect: Fix crash with gist_page_items() 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 page

pgsql: pageinspect: Fix crash with gist_page_items()

2023-03-01 Thread Michael Paquier
pageinspect: Fix crash with gist_page_items() 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 page

pgsql: pageinspect: Fix crash with gist_page_items()

2023-03-01 Thread Michael Paquier
pageinspect: Fix crash with gist_page_items() 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 page