pg_buffercache
examine the shared buffer cache
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_buffercache | 1.5 | STAT | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 6930 | pg_buffercache | No | Yes | No | Yes | No | No | - |
| Related | pgfincore pgcozy pg_prewarm pg_cooldown toastinfo pagevis pageinspect pg_freespacemap pg_visibility pgstattuple |
|---|---|
| Depended By | pgcozy |
Version
| PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|
| 1.5 | 1.5 | 1.5 | 1.5 | 1.5 |
Install
Note: This is a built-in contrib extension of PostgreSQL
Usage
pg_buffercache provides views and functions to examine what is stored in the PostgreSQL shared buffer cache in real time.
Views
pg_buffercache – detailed per-buffer information:
Columns: bufferid, relfilenode, reltablespace, reldatabase, relforknumber, relblocknumber, isdirty, usagecount, pinning_backends.
Summary Functions
Eviction Functions (Superuser, Developer Testing Only)
NUMA View
Access
Restricted to superusers and roles with pg_monitor privileges.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)