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 <[email protected]> Reviewed-By: Victor Yegorov <[email protected]> Discussion: https://postgr.es/m/cah2-wzmwmwcwkfgaf+mypwiz3il4aqpxnwtw_o0vqpwpxro...@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(-)
