From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Relocate _bt_readpage and related functions.
Date: Mon, 08 Dec 2025 18:15:52 +0000
Message-ID: <E1vSfm4-003T4Y-01@gemulon.postgresql.org> (raw)
Relocate _bt_readpage and related functions.
Quite a bit of code within nbtutils.c is only called by _bt_readpage.
Move _bt_readpage and all of the nbtutils.c functions it depends on into
a new .c file, nbtreadpage.c. Also reorder some of the functions within
the new file for clarity.
This commit has no functional impact. It is strictly mechanical.
Author: Peter Geoghegan <pg@bowt.ie>
Reviewed-By: Victor Yegorov <vyegorov@gmail.com>
Discussion: https://postgr.es/m/CAH2-WzmwMwcwKFgaf+mYPwiz3iL4AqpXnwtW_O0vqpWPXRom9Q@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/65d6acbc564989af15102f69978c63c3cdb5fdbc
Modified Files
--------------
src/backend/access/nbtree/Makefile | 1 +
src/backend/access/nbtree/meson.build | 1 +
src/backend/access/nbtree/nbtreadpage.c | 3726 +++++++++++++++++++++++++++++++
src/backend/access/nbtree/nbtree.c | 74 +-
src/backend/access/nbtree/nbtsearch.c | 521 -----
src/backend/access/nbtree/nbtutils.c | 3211 --------------------------
src/include/access/nbtree.h | 55 +-
7 files changed, 3812 insertions(+), 3777 deletions(-)
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: pg@bowt.ie, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Relocate _bt_readpage and related functions.
In-Reply-To: <E1vSfm4-003T4Y-01@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