> 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/internals/catalogs/catalog-pg-subscription-rel.md). Agents can also search and read this documentation through its [MCP server](https://docs.postgresql.tw/~gitbook/mcp).

# 52.55. pg\_subscription\_rel \#

### 52.55. `pg_subscription_rel` [#](#catalog-pg-subscription-rel) <a href="#catalog-pg-subscription-rel" id="catalog-pg-subscription-rel"></a>

目錄 `pg_subscription_rel` 包含每個訂閱中每個被複寫關聯的狀態。這是多對多的對應。

此目錄只包含在執行 [`CREATE SUBSCRIPTION`](https://docs.postgresql.tw/19/reference/sql-commands/sql-createsubscription.md) 或 [`ALTER SUBSCRIPTION ... REFRESH PUBLICATION`](https://docs.postgresql.tw/19/reference/sql-commands/sql-altersubscription.md) 之後，訂閱所知道的資料表。

#### 表 52.55. `pg_subscription_rel` 欄位 [#](#catalog-pg-subscription-rel-columns) <a href="#catalog-pg-subscription-rel-columns" id="catalog-pg-subscription-rel-columns"></a>

| <p>欄位類型</p><p>說明</p>                                                                                                                                                                                    |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>srsubid</code> <code>oid</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-subscription.md"><code>pg\_subscription</code></a>.<code>oid</code>）</p><p>對訂閱的參照</p> |
| <p><code>srrelid</code> <code>oid</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-class.md"><code>pg\_class</code></a>.<code>oid</code>）</p><p>對關聯的參照</p>               |
| <p><code>srsubstate</code> <code>char</code></p><p>狀態代碼： <code>i</code> = 初始化， <code>d</code> = 正在複製資料， <code>f</code> = 資料表複製完成， <code>s</code> = 已同步， <code>r</code> = 就緒（正常複寫）</p>                   |
| <p><code>srsublsn</code> <code>pg\_lsn</code></p><p>處於 <code>s</code> 或 <code>r</code> 狀態時， 用於同步協調之狀態變更的遠端 LSN；否則為 null</p>                                                                             |

<br>

***

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


---

# 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/internals/catalogs/catalog-pg-subscription-rel.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.
