> 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/appendixes/contrib/pgbuffercache/pgbuffercache-pg-buffercache-numa.md). Agents can also search and read this documentation through its [MCP server](https://docs.postgresql.tw/~gitbook/mcp).

# F.25.2. pg\_buffercache\_numa 檢視表

## F.25.2. `pg_buffercache_numa` 檢視表 [#](#pgbuffercache-pg-buffercache-numa) <a href="#pgbuffercache-pg-buffercache-numa" id="pgbuffercache-pg-buffercache-numa"></a>

此檢視表所提供欄位的定義如[表 F.15](#pgbuffercache-numa-columns)所示。

### 表 F.15. `pg_buffercache_numa` 欄位 [#](#pgbuffercache-numa-columns) <a href="#pgbuffercache-numa-columns" id="pgbuffercache-numa-columns"></a>

| <p>欄位類型</p><p>說明</p>                                                                           |
| ---------------------------------------------------------------------------------------------- |
| <p><code>bufferid</code> <code>integer</code></p><p>ID，範圍為 1..<code>shared\_buffers</code></p> |
| <p><code>os\_page\_num</code> <code>bigint</code></p><p>此緩衝區所在的作業系統記憶體頁面編號</p>                 |
| <p><code>numa\_node</code> <code>int</code></p><p>NUMA 節點的 ID</p>                              |

<br>

由於查詢每個頁面的 NUMA 節點 ID 需要先將記憶體頁面調入（page in），此函式第一次執行時可能需要相當可觀的時間。在所有情況下（無論是否為第一次執行），擷取此資訊的成本都很高，因此不建議高頻率查詢此檢視表。

### 警告

在判定 NUMA 節點時，此檢視表會存取（touch）共享記憶體區段的所有記憶體頁面。若共享記憶體尚未配置，這會強制配置它，而且記憶體可能會被配置在單一 NUMA 節點上（取決於系統設定）。

[返回 F.25. pg\_buffercache — 檢查 PostgreSQL 緩衝區快取狀態](https://docs.postgresql.tw/19/appendixes/contrib/pgbuffercache.md#pgbuffercache)

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/pgbuffercache.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/appendixes/contrib/pgbuffercache/pgbuffercache-pg-buffercache-numa.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.
