postgresql_16:4.13.2.7 pg_stat_recovery_prefetch
PostgreSQL 16 > Server Administration > Monitoring Database Activity > The Cumulative Statistics System > pg_stat_recovery_prefetch
The pg_stat_recovery_prefetch view will contain only one row. The columns wal_distance, block_distance and io_depth show current values, and the other columns show cumulative counters that can be reset with the pg_stat_reset_shared function.
| Column Type Description | | --- | | stats_reset timestamp with time zone Time at which these statistics were last reset | | prefetch bigint Number of blocks prefetched because they were not in the buffer pool | | hit bigint Number of blocks not prefetched because they were already in the buffer pool | | skip_init bigint Number of blocks not prefetched because they would be zero-initialized | | skip_new bigint Number of blocks not prefetched because they didn't exist yet | | skip_fpw bigint Number of blocks not prefetched because a full page image was included in the WAL | | skip_rep bigint Number of blocks not prefetched because they were already recently prefetched | | wal_distance int How many bytes ahead the prefetcher is looking | | block_distance int How many blocks ahead the prefetcher is looking | | io_depth int How many prefetches have been initiated but are not yet known to have completed |