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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 981643d) | patch
Support PrefetchBuffer() in recovery.
Wed, 8 Apr 2020 01:36:45 +0000 (13:36 +1200)
Wed, 8 Apr 2020 02:56:57 +0000 (14:56 +1200)
commit 3985b600f57d75b9743d86430cb5c21370057a23
Support PrefetchBuffer() in recovery.

Provide PrefetchSharedBuffer(), a variant that takes SMgrRelation, for
use in recovery. Rename LocalPrefetchBuffer() to PrefetchLocalBuffer()
for consistency.

Add a return value to all of these. In recovery, tolerate and report
missing files, so we can handle relations unlinked before crash recovery
began. Also report cache hits and misses, so that callers can do faster
buffer lookups and better I/O accounting.

Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA%2BhUKGJ4VJN8ttxScUFM8dOKX0BrBiboo5uz1cq%3DAovOddfHpA%40mail.gmail.com
src/backend/storage/buffer/bufmgr.c diff | blob | blame | history
src/backend/storage/buffer/localbuf.c diff | blob | blame | history
src/backend/storage/smgr/md.c diff | blob | blame | history
src/backend/storage/smgr/smgr.c diff | blob | blame | history
src/include/storage/buf_internals.h diff | blob | blame | history
src/include/storage/bufmgr.h diff | blob | blame | history
src/include/storage/md.h diff | blob | blame | history
src/include/storage/smgr.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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