PostgreSQL 15 ← 14Catalog added
STATISTICS VIEW · Statistics view
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.
Checked column by column against a PostgreSQL 18.6 instance · Raw measurement record ↗
Columns PostgreSQL 18
pg_stat_recovery_prefetch| 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 |
integerDocumented as:int |
How many bytes ahead the prefetcher is looking |
block_distance |
integerDocumented as:int |
How many blocks ahead the prefetcher is looking |
io_depth |
integerDocumented as:int |
How many prefetches have been initiated but are not yet known to have completed |
Columns marked "implicit" are not included in SELECT *; some early statistics views are completed from same-version source, and the extra provenance is shown in the column description.
Common system columns 0
System attributes PostgreSQL provides, normally not expanded by SELECT *. Kept separately so they are not mixed in with ordinary columns.
| Columns | Type | attnum |
|---|
Column evolution matrix
Hover a cell for the column type9.0 is the coverage baseline; a column already present in the baseline is not marked as added. The matrix aligns columns by name, so a rename appears as the old column removed and a new column added.
Evolution timeline
Changes between adjacent majorsCompare any two versions
Pick two versions to see added, removed, and retyped columns. The interactive comparison needs JavaScript; the evolution timeline reads fine without it.