| From: | Thomas Munro <tmunro(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Provide ReadRecentBuffer() to re-pin buffers by ID. |
| Date: | 2021-04-08 05:52:18 |
| Message-ID: | E1lUNaU-0005mq-UA@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)anarazel(dot)de>
Discussion: https://postgr.es/m/CA+hUKGJ4VJN8ttxScUFM8dOKX0BrBiboo5uz1cq=AovOddfHpA@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2f27f8c511494cca9e0e9a4eeeb102fa9f193002
Modified Files
--------------
src/backend/storage/buffer/bufmgr.c | 78 +++++++++++++++++++++++++++++++++++++
src/include/storage/bufmgr.h | 2 +
2 files changed, 80 insertions(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Julien Rouhaud | 2021-04-08 06:11:02 | Re: pgsql: Move pg_stat_statements query jumbling to core. |
| Previous Message | Julien Rouhaud | 2021-04-08 05:22:49 | Re: pgsql: Move pg_stat_statements query jumbling to core. |