nbtree: Simplify _bt_first parallel scan handling.

Peter Geoghegan <pg@bowt.ie>

Commit: 428a99b58960a2772c3a29235eb694054f666a28
Author: Peter Geoghegan <pg@bowt.ie>
Date: 2025-01-07T15:29:46Z
Releases: 18.0
nbtree: Simplify _bt_first parallel scan handling.

This new structure relieves _bt_first from having separate calls to
_bt_start_array_keys for the serial case and parallel case.  This saves
code, and seems clearer.

Follow-up to work from commits 4e6e375b and b5ee4e52.

Author: Peter Geoghegan <pg@bowt.ie>
Reviewed-By: Matthias van de Meent <boekewurm+postgres@gmail.com>
Discussion: https://postgr.es/m/CAH2-Wz=XjUZjBjHJdhTvuH5MwoJObWGoM2RG2LyFg5WUdWyk=A@mail.gmail.com

Files

PathChange+/−
src/backend/access/nbtree/nbtsearch.c modified +34 −46

Discussion