> 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/internals/catalogs/catalog-pg-publication.md).

# 52.40. pg\_publication \#

The catalog `pg_publication` contains all publications created in the database. For more on publications see [Section 29.1](/server-administration/logical-replication/logical-replication-publication.md).

**Table 52.40. `pg_publication` Columns**

| <p>Column Type</p><p>Description</p>                                                                                                                                                                                                                                                                                                                                          |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><code>oid</code> <code>oid</code></p><p>Row identifier</p>                                                                                                                                                                                                                                                                                                                 |
| <p><code>pubname</code> <code>name</code></p><p>Name of the publication</p>                                                                                                                                                                                                                                                                                                   |
| <p><code>pubowner</code> <code>oid</code> (references <a href="/pages/nyEMOe5gQKgypFQTDbjS"><code>pg\_authid</code></a>.<code>oid</code>)</p><p>Owner of the publication</p>                                                                                                                                                                                                  |
| <p><code>puballtables</code> <code>bool</code></p><p>If true, this publication automatically includes all tables in the database, including any that will be created in the future.</p>                                                                                                                                                                                       |
| <p><code>pubinsert</code> <code>bool</code></p><p>If true, <a href="/pages/-LADBQPgTz3orN8X_npj">INSERT</a> operations are replicated for tables in the publication.</p>                                                                                                                                                                                                      |
| <p><code>pubupdate</code> <code>bool</code></p><p>If true, <a href="/pages/-LADBQPpOy4YDpkH5e2O">UPDATE</a> operations are replicated for tables in the publication.</p>                                                                                                                                                                                                      |
| <p><code>pubdelete</code> <code>bool</code></p><p>If true, <a href="/pages/-LADBQPbrMy1_pPiy4S4">DELETE</a> operations are replicated for tables in the publication.</p>                                                                                                                                                                                                      |
| <p><code>pubtruncate</code> <code>bool</code></p><p>If true, <a href="/pages/-LD4u3hoavHiq2mth3FA">TRUNCATE</a> operations are replicated for tables in the publication.</p>                                                                                                                                                                                                  |
| <p><code>pubviaroot</code> <code>bool</code></p><p>If true, operations on a leaf partition are replicated using the identity and schema of its topmost partitioned ancestor mentioned in the publication instead of its own.</p>                                                                                                                                              |
| <p><code>pubgencols</code> <code>char</code></p><p>Controls how to handle generated column replication when there is no publication column list: <code>n</code> = generated columns in the tables associated with the publication should not be replicated, <code>s</code> = stored generated columns in the tables associated with the publication should be replicated.</p> |

<br>

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/catalog-pg-publication.html)（英文原文，待翻譯）


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.postgresql.tw/internals/catalogs/catalog-pg-publication.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
