Summary
The catalog pg_publication contains all publications created in the database. For more on publications see logical_replication_publication.
(Description quoted from the official PostgreSQL documentation.)
Columns
The pg_publication system catalog exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):
oidoid
Row identifierpubnamename
Name of the publicationpubowneroidreferencespg_authid.oid
Owner of the publicationpuballtablesbool
If true, this publication automatically includes all tables in the database, including any that will be created in the future.puballsequencesbool
If true, this publication automatically includes all sequences in the database, including any that will be created in the future.pubinsertbool
If true, insert operations are replicated for tables in the publication.pubupdatebool
If true, update operations are replicated for tables in the publication.pubdeletebool
If true, delete operations are replicated for tables in the publication.pubtruncatebool
If true, truncate operations are replicated for tables in the publication.pubviarootbool
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.pubgencolschar
Controls how to handle generated column replication when there is no publication column list: n = generated columns in the tables associated with the publication should not be replicated, s = stored generated columns in the tables associated with the publication should be replicated.
Related catalogs
This object references the following other system catalogs:
pubowner→pg_authid
Version applicability
Present in PostgreSQL 17, 18, 19 (verified against each release’s documentation). This is a long-standing system object that also exists in earlier PostgreSQL releases.
Related & references
Reference: PostgreSQL documentation — pg_publication.