diff options
author | Thomas Munro <tmunro@postgresql.org> | 2020-04-08 13:36:45 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2020-04-08 14:56:57 +1200 |
commit | 3985b600f57d75b9743d86430cb5c21370057a23 (patch) | |
tree | f367f4511386eeacf127a8e8b25afc9f8ea46101 /src/backend/utils/adt/arrayfuncs.c | |
parent | 981643dcdb70b6ce70d8a08417f71f465f236cb5 (diff) | |
download | postgresql-3985b600f57d75b9743d86430cb5c21370057a23.tar.gz postgresql-3985b600f57d75b9743d86430cb5c21370057a23.zip |
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
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions