pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move nbtree preprocessing into new .c file.
Date: Mon, 13 Jan 2025 17:15:45 +0000
Message-ID: <E1tXO2T-001L0N-Cu@gemulon.postgresql.org> (raw)

Move nbtree preprocessing into new .c file.

Quite a bit of code within nbtutils.c is only called during nbtree
preprocessing.  Move that code into a new .c file, nbtpreprocesskeys.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>
Suggested-by: Heikki Linnakangas <hlinnaka@iki.fi>
Discussion: https://postgr.es/m/CAH2-WznwNn1BDOpWxHBUK1f3Rdw8pO9UCenWXnvT=n9GO8GnLA@mail.gmail.com
Discussion: https://postgr.es/m/86930045-5df5-494a-b4f1-815bc3fbcce0%40iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/597b1ffbf12352a3863a894f16741864aaf2242f

Modified Files
--------------
src/backend/access/nbtree/Makefile            |    1 +
src/backend/access/nbtree/meson.build         |    1 +
src/backend/access/nbtree/nbtpreprocesskeys.c | 1864 +++++++++++++++++++
src/backend/access/nbtree/nbtutils.c          | 2374 +++----------------------
src/include/access/nbtree.h                   |   11 +-
5 files changed, 2135 insertions(+), 2116 deletions(-)



Message-ID: <E1tXO2T-001L0N-Cu@gemulon.postgresql.org>
Permalink:  ../E1tXO2T-001L0N-Cu@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tXO2T-001L0N-Cu@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: pg@bowt.ie, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Move nbtree preprocessing into new .c file.
  In-Reply-To: <E1tXO2T-001L0N-Cu@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