pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pageinspect: Fix failure with hash_bitmap_info() for partitioned
Date: Tue, 19 Dec 2023 09:20:03 +0000
Message-ID: <E1rFWGg-00Atwr-PU@gemulon.postgresql.org> (raw)

pageinspect: Fix failure with hash_bitmap_info() for partitioned indexes

This function reads directly a page from a relation, relying on
index_open() to open the index to read from.  Unfortunately, this would
crash when using partitioned indexes, as these can be opened with
index_open() but they have no physical pages.

Alexander has fixed the module, while I have written the test.

Author: Alexander Lakhin, Michael Paquier
Discussion: https://postgr.es/m/18246-f4d9ff7cb3af77e6@postgresql.org
Backpatch-through: 12

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2e08440d61ea1a783d98c05a834bb52736de5dd9

Modified Files
--------------
contrib/pageinspect/expected/hash.out | 5 +++++
contrib/pageinspect/hashfuncs.c       | 6 ++++--
contrib/pageinspect/sql/hash.sql      | 5 +++++
3 files changed, 14 insertions(+), 2 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1rFWGg-00Atwr-PU@gemulon.postgresql.org>
Permalink:  ../E1rFWGg-00Atwr-PU@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rFWGg-00Atwr-PU@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: pageinspect: Fix failure with hash_bitmap_info() for partitioned
  In-Reply-To: <E1rFWGg-00Atwr-PU@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