postgresql/contrib/pageinspect/sql
Michael Paquier 2e08440d61 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
2023-12-19 18:19:16 +09:00
..
brin.sql pageinspect: Fix crash with gist_page_items() 2023-03-02 14:03:08 +09:00
btree.sql pageinspect: Fix handling of all-zero pages 2022-04-14 15:08:03 +09:00
checksum.sql Add an explicit test to catch changes in checksumming calculations. 2020-03-08 15:09:14 -04:00
gin.sql pageinspect: Fix handling of all-zero pages 2022-04-14 15:08:03 +09:00
gist.sql pageinspect: Fix gist_page_items() with included columns 2023-05-19 12:38:15 +09:00
hash.sql pageinspect: Fix failure with hash_bitmap_info() for partitioned indexes 2023-12-19 18:19:16 +09:00
oldextversions.sql pageinspect: Improve page_header() for pages of 32kB 2021-07-12 11:05:27 +09:00
page.sql Prevent instability in contrib/pageinspect's regression test. 2022-11-21 10:50:50 -05:00