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/[email protected] 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(-)
