From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: pageinspect: Fix failure with hash_bitmap_info() for partitioned |
Date: | 2023-12-19 09:20:03 |
Message-ID: | E1rFWGg-00Atwz-Qt@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/f610d4f119b5761475dff65266ec29c8e9cae509
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2023-12-19 10:12:05 | pgsql: Simplify newNode() by removing special cases |
Previous Message | Michael Paquier | 2023-12-19 06:21:28 | pgsql: pgstattuple: Fix failure with pgstathashindex() for partitioned |