pgsql: Move nbtree preprocessing into new .c file.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Move nbtree preprocessing into new .c file.
Date: 2025-01-13 17:15:45
Message-ID: E1tXO2T-001L0N-Cu@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)bowt(dot)ie>
Suggested-by: Heikki Linnakangas <hlinnaka(at)iki(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Melanie Plageman 2025-01-13 19:57:02 Re: pgsql: Consolidate docs for vacuum-related GUCs in new subsection
Previous Message Nathan Bossart 2025-01-13 15:37:49 pgsql: Add commit 6e826278f1 to .git-blame-ignore-revs.