pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add amgettreeheight index AM API routine
Date: Tue, 10 Sep 2024 08:09:04 +0000
Message-ID: <E1snvvr-000Pul-Sq@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/56fead44dcc70df9f9188fee08e5aefe3da43ccc

Modified Files
--------------
contrib/bloom/blutils.c                          |  1 +
doc/src/sgml/indexam.sgml                        | 16 ++++++++++++++++
src/backend/access/brin/brin.c                   |  1 +
src/backend/access/gin/ginutil.c                 |  1 +
src/backend/access/gist/gist.c                   |  1 +
src/backend/access/hash/hash.c                   |  1 +
src/backend/access/nbtree/nbtree.c               | 10 ++++++++++
src/backend/access/spgist/spgutils.c             |  1 +
src/backend/optimizer/util/plancat.c             | 13 ++++++-------
src/include/access/amapi.h                       |  8 ++++++++
src/include/access/nbtree.h                      |  1 +
src/test/modules/dummy_index_am/dummy_index_am.c |  1 +
12 files changed, 48 insertions(+), 7 deletions(-)



Message-ID: <E1snvvr-000Pul-Sq@gemulon.postgresql.org>
Permalink:  ../E1snvvr-000Pul-Sq@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1snvvr-000Pul-Sq@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add amgettreeheight index AM API routine
  In-Reply-To: <E1snvvr-000Pul-Sq@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox