pgsql: heap pruning: Only call BufferGetBlockNumber() once.

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: heap pruning: Only call BufferGetBlockNumber() once.
Дата
Msg-id E1n9baE-0006NM-Dj@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: pgsql: Test replay of regression tests, attempt II.
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: tests: Consistently use pg_basebackup -cfast --no-sync to accele