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

# 52.42. pg\_publication\_rel \#

### 52.42. `pg_publication_rel` [#](#catalog-pg-publication-rel) <a href="#catalog-pg-publication-rel" id="catalog-pg-publication-rel"></a>

系統目錄 `pg_publication_rel` 包含資料庫中關聯與發佈之間的對應。這是多對多的對應。關於這些資訊更易於使用的檢視方式，另請參閱[第 53.18 節](https://docs.postgresql.tw/19/internals/views/view-pg-publication-tables.md)。

#### 表 52.42. `pg_publication_rel` 欄位 [#](#catalog-pg-publication-rel-columns) <a href="#catalog-pg-publication-rel-columns" id="catalog-pg-publication-rel-columns"></a>

| <p>欄位類型</p><p>說明</p>                                                                                                                                                                                                                                                               |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>oid</code> <code>oid</code></p><p>資料列識別碼</p>                                                                                                                                                                                                                              |
| <p><code>prpubid</code> <code>oid</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-publication.md"><code>pg\_publication</code></a>.<code>oid</code>）</p><p>對發佈的參照</p>                                                                              |
| <p><code>prrelid</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>prqual</code> <code>pg\_node\_tree</code></p><p>關聯之發佈限定條件的運算式樹（採 <code>nodeToString()</code> 表示法）。若沒有發佈限定條件，則為 null。</p>                                                                                                                                                  |
| <p><code>prattrs</code> <code>int2vector</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-attribute.md"><code>pg\_attribute</code></a>.<code>attnum</code>）</p><p>這是一個值陣列，指出哪些資料表欄位屬於此發佈。例如值 <code>1 3</code> 表示發佈資料表的第一個與第三個欄位。null 值表示發佈所有欄位。</p> |

<br>

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/catalog-pg-publication-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-publication-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.
