Relocate _bt_readpage and related functions.
Peter Geoghegan <pg@bowt.ie>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/nbtree/Makefile | modified | +1 −0 |
| src/backend/access/nbtree/meson.build | modified | +1 −0 |
| src/backend/access/nbtree/nbtreadpage.c | added | +3726 −0 |
| src/backend/access/nbtree/nbtree.c | modified | +72 −2 |
| src/backend/access/nbtree/nbtsearch.c | modified | +0 −521 |
| src/backend/access/nbtree/nbtutils.c | modified | +0 −3211 |
| src/include/access/nbtree.h | modified | +12 −43 |
Discussion
- Moving _bt_readpage and _bt_checkkeys into a new .c file 8 messages · 2025-12-06 → 2025-12-08