git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0827e8a) | patch
Provide ReadRecentBuffer() to re-pin buffers by ID.
Thu, 8 Apr 2021 05:48:37 +0000 (17:48 +1200)
Thu, 8 Apr 2021 05:50:25 +0000 (17:50 +1200)
commit 2f27f8c511494cca9e0e9a4eeeb102fa9f193002
Provide ReadRecentBuffer() to re-pin buffers by ID.

If you know the ID of a buffer that recently held a block that you would
like to pin, this function can be used check if it's still there. It
can be used to avoid a second lookup in the buffer mapping table after
PrefetchBuffer() reports a cache hit.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA+hUKGJ4VJN8ttxScUFM8dOKX0BrBiboo5uz1cq=AovOddfHpA@mail.gmail.com
src/backend/storage/buffer/bufmgr.c diff | blob | blame | history
src/include/storage/bufmgr.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /