pgsql: heap pruning: Only call BufferGetBlockNumber() once.
pgsql: 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/c702d656a28386cf5f642206b495c66775afc4ea Modified Files -------------- src/backend/access/heap/pruneheap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)