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

# 52.40. pg\_publication \#

### 52.40. `pg_publication` [#](#catalog-pg-publication) <a href="#catalog-pg-publication" id="catalog-pg-publication"></a>

系統目錄 `pg_publication` 包含資料庫中建立的所有發佈。關於發佈的更多資訊，請參閱[第 29.1 節](https://docs.postgresql.tw/19/server-administration/logical-replication/logical-replication-publication.md)。

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

| <p>欄位類型</p><p>說明</p>                                                                                                                                                                         |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>oid</code> <code>oid</code></p><p>資料列識別碼</p>                                                                                                                                        |
| <p><code>pubname</code> <code>name</code></p><p>發佈的名稱</p>                                                                                                                                    |
| <p><code>pubowner</code> <code>oid</code> （參照 <a href="https://docs.postgresql.tw/19/internals/catalogs/catalog-pg-authid.md"><code>pg\_authid</code></a>.<code>oid</code>）</p><p>發佈的擁有者</p> |
| <p><code>puballtables</code> <code>bool</code></p><p>若為真，此發佈會自動包含資料庫中的所有資料表，包括未來將建立的任何資料表。</p>                                                                                               |
| <p><code>pubinsert</code> <code>bool</code></p><p>若為真，發佈中資料表的 <a href="https://docs.postgresql.tw/19/reference/sql-commands/sql-insert.md">INSERT</a> 操作會被複寫。</p>                            |
| <p><code>pubupdate</code> <code>bool</code></p><p>若為真，發佈中資料表的 <a href="https://docs.postgresql.tw/19/reference/sql-commands/sql-update.md">UPDATE</a> 操作會被複寫。</p>                            |
| <p><code>pubdelete</code> <code>bool</code></p><p>若為真，發佈中資料表的 <a href="https://docs.postgresql.tw/19/reference/sql-commands/sql-delete.md">DELETE</a> 操作會被複寫。</p>                            |
| <p><code>pubtruncate</code> <code>bool</code></p><p>若為真，發佈中資料表的 <a href="https://docs.postgresql.tw/19/reference/sql-commands/sql-truncate.md">TRUNCATE</a> 操作會被複寫。</p>                      |
| <p><code>pubviaroot</code> <code>bool</code></p><p>若為真，對葉分割區的操作會以發佈中所提及、其最上層分割資料表祖先的識別與綱要進行複寫，而不是使用葉分割區自身的識別與綱要。</p>                                                                         |
| <p><code>pubgencols</code> <code>char</code></p><p>控制在沒有發佈欄位清單時，如何處理產生欄位的複寫：<code>n</code> = 不應複寫與此發佈相關聯之資料表中的產生欄位，<code>s</code> = 應複寫與此發佈相關聯之資料表中的儲存式產生欄位。</p>                             |

<br>

***

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