Add amgettreeheight index AM API routine

Peter Eisentraut <peter@eisentraut.org>

Commit: 56fead44dcc70df9f9188fee08e5aefe3da43ccc
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2024-09-10T08:03:23Z
Releases: 18.0
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

Documentation touched

Discussion