> For the complete documentation index, see [llms.txt](https://docs.postgresql.tw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.postgresql.tw/19/server-administration/monitoring/monitoring-stats/monitoring-pg-stat-recovery-prefetch.md). Agents can also search and read this documentation through its [MCP server](https://docs.postgresql.tw/~gitbook/mcp).

# 27.2.7. pg\_stat\_recovery\_prefetch

## 27.2.7. `pg_stat_recovery_prefetch` [#](#monitoring-pg-stat-recovery-prefetch) <a href="#monitoring-pg-stat-recovery-prefetch" id="monitoring-pg-stat-recovery-prefetch"></a>

`pg_stat_recovery_prefetch` 檢視表僅會有 一筆資料列。`wal_distance`、 `block_distance` 以及 `io_depth` 這幾個欄位顯示的是目前的值，而 其他欄位顯示的則是可以透過 `pg_stat_reset_shared` 函式重設的累計計數器。

### 表 27.17. `pg_stat_recovery_prefetch` 檢視表 [#](#pg-stat-recovery-prefetch-view) <a href="#pg-stat-recovery-prefetch-view" id="pg-stat-recovery-prefetch-view"></a>

| <p>欄位類型</p><p>說明</p>                                                                       |
| ------------------------------------------------------------------------------------------ |
| <p><code>stats\_reset</code> <code>timestamp with time zone</code></p><p>這些統計資訊上次重設的時間</p> |
| <p><code>prefetch</code> <code>bigint</code></p><p>因不在緩衝池中而被預先擷取的區塊數量</p>                  |
| <p><code>hit</code> <code>bigint</code></p><p>因已存在於緩衝池中而未被預先擷取的區塊數量</p>                    |
| <p><code>skip\_init</code> <code>bigint</code></p><p>因將以零值初始化而未被預先擷取的區塊數量</p>              |
| <p><code>skip\_new</code> <code>bigint</code></p><p>因尚不存在而未被預先擷取的區塊數量</p>                  |
| <p><code>skip\_fpw</code> <code>bigint</code></p><p>因 WAL 中已包含完整分頁映像而未被預先擷取的區塊數量</p>       |
| <p><code>skip\_rep</code> <code>bigint</code></p><p>因最近已經被預先擷取過而未被再次預先擷取的區塊數量</p>          |
| <p><code>wal\_distance</code> <code>int</code></p><p>預先擷取程序目前向前查看的位元組數</p>                 |
| <p><code>block\_distance</code> <code>int</code></p><p>預先擷取程序目前向前查看的區塊數</p>                |
| <p><code>io\_depth</code> <code>int</code></p><p>已發起但尚未確定完成的預先擷取數量</p>                     |

<br>

[返回 27.2. 累計統計系統](https://docs.postgresql.tw/19/server-administration/monitoring/monitoring-stats.md#monitoring-stats)

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/monitoring-stats.html)（原文版本：18.6；核對日期：2026-10-23）


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.postgresql.tw/19/server-administration/monitoring/monitoring-stats/monitoring-pg-stat-recovery-prefetch.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
