pgsql: Avoid misinterpreting GiST pages in pageinspect.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid misinterpreting GiST pages in pageinspect.
Date: 2021-02-15 03:44:25
Message-ID: E1lBUoD-000744-O6@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid misinterpreting GiST pages in pageinspect.

GistPageSetDeleted() sets pd_lower when deleting a page, and sets the
page contents to a GISTDeletedPageContents. Avoid treating deleted GiST
pages as regular slotted pages within pageinspect.

Oversight in commit 756ab291.

Author: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>

Branch
------
master

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

Modified Files
--------------
contrib/pageinspect/gistfuncs.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2021-02-15 04:12:07 pgsql: Add "LP_DEAD item?" column to GiST pageinspect functions
Previous Message Peter Geoghegan 2021-02-15 03:29:36 pgsql: Adjust lazy_scan_heap() accounting comments.