↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / System Catalogs

pg_stat_slru

PostgreSQL accesses certain on-disk information via SLRU (simple least-recently-used) caches. The pg_stat_slru view will contain one row for each tracked SLRU cache, showing statistics about access to cached pages. For each SLRU cache that's part of the core server, there is a configuration parameter that controls its size, with the suffix _buffers appended.

English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

kind
statistics
lang
en
measured attributes
true
metadata release
18.6
runtime columns
name, blks_zeroed, blks_hit, blks_read, blks_written, blks_exists, flushes, truncates, stats_reset
runtime verified
false
source
english-manual

Definition PG 18

PostgreSQL accesses certain on-disk information via SLRU (simple least-recently-used) caches. The pg_stat_slru view will contain one row for each tracked SLRU cache, showing statistics about access to cached pages. For each SLRU cache that's part of the core server, there is a configuration parameter that controls its size, with the suffix _buffers appended.

Catalog columns

ColumnTypeNullabilityDescription
nametextNullableName of the SLRU
blks_zeroedbigintNullableNumber of blocks zeroed during initializations
blks_hitbigintNullableNumber of times disk blocks were found already in the SLRU, so that a read was not necessary (this only includes hits in the SLRU, not the operating system's file system cache)
blks_readbigintNullableNumber of disk blocks read for this SLRU
blks_writtenbigintNullableNumber of disk blocks written for this SLRU
blks_existsbigintNullableNumber of blocks checked for existence for this SLRU
flushesbigintNullableNumber of flushes of dirty data for this SLRU
truncatesbigintNullableNumber of truncates for this SLRU
stats_resettimestamp with time zoneNullableTime at which these statistics were last reset

Compare versions

Complete source facts

documentation revision

{"inputs":[{"file":"monitoring-stats.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"a97e4aa05484b41cec1f4c9b0b9c5a083596a056982e5d5ba0db1dd8d49961fb","version":"18.7"},{"file":"monitoring-stats.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"1ddb6576fe569e029a1c776c82e7add6be8e4f41705bcd8f66f4347fe23372b6","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"}

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · catalog-bilingual-repair:d62feba0e37f39fda03d486dd2f4f669fab4ff4834dd54986a26c6fcda8be608

Text language: en · catalog-bilingual-repair:d62feba0e37f39fda03d486dd2f4f669fab4ff4834dd54986a26c6fcda8be608