Add amgettreeheight index AM API routine
Peter Eisentraut <peter@eisentraut.org>
Add amgettreeheight index AM API routine The only current implementation is for btree where it calls _bt_getrootheight(). Other index types can now also use this to pass information to their amcostestimate routine. Previously, btree was hardcoded and other index types could not hook into the optimizer at this point. Author: Mark Dilger <mark.dilger@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/flat/E72EAA49-354D-4C2E-8EB9-255197F55330@enterprisedb.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/bloom/blutils.c | modified | +1 −0 |
| doc/src/sgml/indexam.sgml | modified | +16 −0 |
| src/backend/access/brin/brin.c | modified | +1 −0 |
| src/backend/access/gin/ginutil.c | modified | +1 −0 |
| src/backend/access/gist/gist.c | modified | +1 −0 |
| src/backend/access/hash/hash.c | modified | +1 −0 |
| src/backend/access/nbtree/nbtree.c | modified | +10 −0 |
| src/backend/access/spgist/spgutils.c | modified | +1 −0 |
| src/backend/optimizer/util/plancat.c | modified | +6 −7 |
| src/include/access/amapi.h | modified | +8 −0 |
| src/include/access/nbtree.h | modified | +1 −0 |
| src/test/modules/dummy_index_am/dummy_index_am.c | modified | +1 −0 |
Documentation touched
Discussion
- Index AM API cleanup 48 messages · 2024-08-21 → 2025-04-04