Fix pageinspect failures on hash indexes.
Robert Haas <rhaas@postgresql.org>
Fix pageinspect failures on hash indexes. Make every page in a hash index which isn't all-zeroes have a valid special space, so that tools like pageinspect don't error out. Also, make pageinspect cope with all-zeroes pages, because _hash_alloc_buckets can leave behind large numbers of those until they're consumed by splits. Ashutosh Sharma and Robert Haas, reviewed by Amit Kapila. Original trouble report from Jeff Janes. Discussion: http://postgr.es/m/CAMkU=1y6NjKmqbJ8wLMhr=F74WzcMALYWcVFhEpm7i=mV=XsOg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pageinspect/hashfuncs.c | modified | +39 −31 |
| src/backend/access/hash/hashovfl.c | modified | +14 −3 |
| src/backend/access/hash/hashpage.c | modified | +11 −1 |
| src/backend/access/hash/hash_xlog.c | modified | +9 −0 |
Discussion
- pageinspect and hash indexes 22 messages · 2017-03-17 → 2017-04-05