pageinspect: Fix failure with hash_bitmap_info() for partitioned indexes
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pageinspect/expected/hash.out | modified | +5 −0 |
| contrib/pageinspect/hashfuncs.c | modified | +4 −2 |
| contrib/pageinspect/sql/hash.sql | modified | +5 −0 |
Discussion
- BUG #18246: pgstathashindex() attempts to read invalid file for hash index attached to partitioned table 5 messages · 2023-12-13 → 2023-12-19