> 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-statio-all-tables-view.md). Agents can also search and read this documentation through its [MCP server](https://docs.postgresql.tw/~gitbook/mcp).

# 27.2.21. pg\_statio\_all\_tables

## 27.2.21. `pg_statio_all_tables` [#](#monitoring-pg-statio-all-tables-view) <a href="#monitoring-pg-statio-all-tables-view" id="monitoring-pg-statio-all-tables-view"></a>

`pg_statio_all_tables` 檢視表中，目前資料庫中的 每個資料表（包括 TOAST 資料表）各會有一筆資料列，顯示有關該特定資料表 I/O 情形的統計資訊。 `pg_statio_user_tables` 與 `pg_statio_sys_tables` 檢視表 包含相同的資訊， 但分別經過篩選，僅顯示使用者資料表與系統資料表。

### 表 27.31. `pg_statio_all_tables` 檢視表 [#](#pg-statio-all-tables-view) <a href="#pg-statio-all-tables-view" id="pg-statio-all-tables-view"></a>

| <p>欄位類型</p><p>說明</p>                                                                             |
| ------------------------------------------------------------------------------------------------ |
| <p><code>relid</code> <code>oid</code></p><p>某個資料表的 OID</p>                                      |
| <p><code>schemaname</code> <code>name</code></p><p>此資料表所屬綱要的名稱</p>                               |
| <p><code>relname</code> <code>name</code></p><p>此資料表的名稱</p>                                      |
| <p><code>heap\_blks\_read</code> <code>bigint</code></p><p>從此資料表讀取的磁碟區塊數量</p>                    |
| <p><code>heap\_blks\_hit</code> <code>bigint</code></p><p>此資料表中緩衝區命中的次數</p>                      |
| <p><code>idx\_blks\_read</code> <code>bigint</code></p><p>從此資料表所有索引讀取的磁碟區塊數量</p>                 |
| <p><code>idx\_blks\_hit</code> <code>bigint</code></p><p>此資料表所有索引中緩衝區命中的次數</p>                   |
| <p><code>toast\_blks\_read</code> <code>bigint</code></p><p>從此資料表的 TOAST 資料表（若有的話）讀取的磁碟區塊數量</p>  |
| <p><code>toast\_blks\_hit</code> <code>bigint</code></p><p>此資料表的 TOAST 資料表（若有的話）中緩衝區命中的次數</p>    |
| <p><code>tidx\_blks\_read</code> <code>bigint</code></p><p>從此資料表的 TOAST 資料表索引（若有的話）讀取的磁碟區塊數量</p> |
| <p><code>tidx\_blks\_hit</code> <code>bigint</code></p><p>此資料表的 TOAST 資料表索引（若有的話）中緩衝區命中的次數</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-statio-all-tables-view.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.
