heap pruning: Only call BufferGetBlockNumber() once.
Andres Freund <andres@anarazel.de>
heap pruning: Only call BufferGetBlockNumber() once. BufferGetBlockNumber() is not that cheap and obviously cannot change during one heap_prune_page(), so only call it once. We might be able to do better and pass the block number from the caller, but that'd be a larger change... Discussion: https://postgr.es/m/20211211045710.ljtuu4gfloh754rs@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/pruneheap.c | modified | +2 −1 |
Discussion
- BUG #17255: Server crashes in index_delete_sort_cmp() due to race condition with vacuum 90 messages · 2021-10-29 → 2022-03-18