aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/llvmjit_inline.cpp
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2024-11-04 09:05:59 -0500
committerPeter Geoghegan <pg@bowt.ie>2024-11-04 09:05:59 -0500
commit62620b6aadcedf453989e6b426f6ef3284c64bed (patch)
treec1871257728e2911f000d0793cb33578a0177dac /src/backend/jit/llvm/llvmjit_inline.cpp
parent1fe0466cf2cbb909b6553061620b6a6779319406 (diff)
downloadpostgresql-62620b6aadcedf453989e6b426f6ef3284c64bed.tar.gz
postgresql-62620b6aadcedf453989e6b426f6ef3284c64bed.zip
Clarify nbtree parallel scan _bt_endpoint contract.
_bt_endpoint is a helper function for _bt_first that's called whenever no useful insertion scan key can be used, and we need to lock and read either the leftmost or rightmost leaf page in the index. Simplify and document its preconditions, relieving its _bt_first caller from having to end the parallel scan when it returns false. Also stop unnecessarily invalidating the current scan position in nearby code in both _bt_first and _bt_endpoint. This seems to have been copy-pasted from _bt_readnextpage, where invalidating the scan's current position really is necessary. Follow-up to the refactoring work in commit 1bd4bc85.
Diffstat (limited to 'src/backend/jit/llvm/llvmjit_inline.cpp')
0 files changed, 0 insertions, 0 deletions