↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

System Catalogs / System catalogs

pg_subscription

Read the PG 18 manual

The catalog pg_subscription contains all existing logical replication subscriptions.

Reading PG 18current·documented in 11 of 24 versions, 10 to 20

Kind
System catalogs
Columns in this snapshot
18
Definition source
English manual
Metadata snapshot
18.6

Columns 18

As listed in the PostgreSQL 18 manual.

ColumnTypeDescription / reference
oidoidNOT NULLRow identifier
subdbidoidNOT NULLOID of the database that the subscription resides in
pg_database.oid
subskiplsnpg_lsnNOT NULLFinish LSN of the transaction whose changes are to be skipped, if a valid LSN; otherwise 0/0.
subnamenameNOT NULLName of the subscription
subowneroidNOT NULLOwner of the subscription
pg_authid.oid
subenabledboolNOT NULLIf true, the subscription is enabled and should be replicating
subbinaryboolNOT NULLIf true, the subscription will request that the publisher send data in binary format
substreamcharNOT NULLControls how to handle the streaming of in-progress transactions: f = disallow streaming of in-progress transactions, t = spill the changes of in-progress transactions to disk and apply at once after the transaction is committed on the publisher and received by the subscriber, p = apply changes directly using a parallel apply worker if available (same as t if no worker is available)
subtwophasestatecharNOT NULLState codes for two-phase mode: d = disabled, p = pending enablement, e = enabled
subdisableonerrboolNOT NULLIf true, the subscription will be disabled if one of its workers detects an error
subpasswordrequiredboolNOT NULLIf true, the subscription will be required to specify a password for authentication
subrunasownerboolNOT NULLIf true, the subscription will be run with the permissions of the subscription owner
subfailoverboolNOT NULLIf true, the associated replication slots (i.e. the main slot and the table synchronization slots) in the upstream database are enabled to be synchronized to the standbys
subconninfotextNOT NULLConnection string to the upstream database
subslotnamenameName of the replication slot in the upstream database (also used for the local replication origin name); null represents NONE
subsynccommittextNOT NULLThe synchronous_commit setting for the subscription's workers to use
subpublicationstext[]NOT NULLArray of subscribed publication names. These reference publications defined in the upstream database. For more on publications see Section 29.1.
suborigintextThe origin value must be either none or any. The default is any. If none, the subscription will request the publisher to only send changes that don't have an origin. If any, the publisher sends changes regardless of their origin.
Column history across versions
Version history 10
  1. 18 → 19 changed
  2. 17 → 18 reworded
  3. 16 → 17 changed
  4. 15 → 16 changed
  5. 14 → 15 changed
  6. 13 → 14 changed
  7. 12 → 13 changed
  8. 11 → 12 changed
  9. 10 → 11 reworded
  10. 9.6 → 10 added

Definition snapshot: english-manuals:5bf6d75fca32033525aed44878d… · English manual source