pg_buffercache
examine the shared buffer cache
pg_buffercache : examine the shared buffer cache
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 6930 | pg_buffercache | pg_buffercache | 1.5 |
STAT | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-- | No | Yes | No | Yes | no | no |
| Relationships | |
|---|---|
| Need By | pgcozy |
| See Also | pgfincore pgcozy pg_prewarm pg_cooldown toastinfo pagevis pageinspect pg_freespacemap pg_visibility pgstattuple |
Packages
| PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|
| 1.5 | 1.5 | 1.5 | 1.5 | 1.5 |
This is a built-in contrib extension ship with the PostgreSQL kernel
Install
Create this extension with:
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.