pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid misinterpreting GiST pages in pageinspect.
Date: Mon, 15 Feb 2021 03:44:25 +0000
Message-ID: <E1lBUoD-000744-O6@gemulon.postgresql.org> (raw)

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@yandex-team.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(-)



Message-ID: <E1lBUoD-000744-O6@gemulon.postgresql.org>
Permalink:  ../E1lBUoD-000744-O6@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lBUoD-000744-O6@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: pg@bowt.ie
  Subject: Re: pgsql: Avoid misinterpreting GiST pages in pageinspect.
  In-Reply-To: <E1lBUoD-000744-O6@gemulon.postgresql.org>
  References: <E1lBUoD-000744-O6@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox