Teach pageinspect about nbtree deduplication.
Peter Geoghegan <pg@bowt.ie>
Teach pageinspect about nbtree deduplication.
Add a new bt_metap() column to display the metapage's allequalimage
field. Also add three new columns to contrib/pageinspect's
bt_page_items() function:
* Add a boolean column ("dead") that displays the LP_DEAD bit value for
each non-pivot tuple.
* Add a TID column ("htid") that displays a single heap TID value for
each tuple. This is the TID that is returned by BTreeTupleGetHeapTID(),
so comparable values are shown for pivot tuples, plain non-pivot tuples,
and posting list tuples.
* Add a TID array column ("tids") that displays TIDs from each tuple's
posting list, if any. This works just like the "tids" column from
pageinspect's gin_leafpage_items() function.
No version bump for the pageinspect extension, since there hasn't been a
stable Postgres release since the last version bump (the last bump was
part of commit 58b4cb30).
Author: Peter Geoghegan
Discussion: https://postgr.es/m/CAH2-WzmSMmU2eNvY9+a4MNP+z02h6sa-uxZvN3un6jY02ZVBSw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pageinspect/btreefuncs.c | modified | +128 −18 |
| contrib/pageinspect/expected/btree.out | modified | +7 −0 |
| contrib/pageinspect/pageinspect--1.7--1.8.sql | modified | +53 −0 |
| doc/src/sgml/pageinspect.sgml | modified | +85 −35 |
Documentation touched
Discussion
- [PROPOSAL] Effective storage of duplicates in B-tree index. 145 messages · 2015-08-31 → 2020-03-06