52.54. pg_subscription
pg_subscription
The catalog pg_subscription contains all existing logical replication subscriptions. For more information about logical replication see Logical Replication.
Unlike most system catalogs, pg_subscription is shared across all databases of a cluster: there is only one copy of pg_subscription per cluster, not one per database.
Access to the column subconninfo is revoked from normal users, because it could contain plain-text passwords.
Column Type Description |
|---|
oid Row identifier |
subdbid OID of the database that the subscription resides in |
subskiplsn Finish LSN of the transaction whose changes are to be skipped, if a valid LSN; otherwise |
subname Name of the subscription |
subowner Owner of the subscription |
subenabled If true, the subscription is enabled and should be replicating |
subbinary If true, the subscription will request that the publisher send data in binary format |
substream Controls how to handle the streaming of in-progress transactions: |
subtwophasestate State codes for two-phase mode: |
subdisableonerr If true, the subscription will be disabled if one of its workers detects an error |
subpasswordrequired If true, the subscription will be required to specify a password for authentication |
subrunasowner If true, the subscription will be run with the permissions of the subscription owner |
subfailover If 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 |
subconninfo Connection string to the upstream database |
subslotname Name of the replication slot in the upstream database (also used for the local replication origin name); null represents |
subsynccommit The |
subpublications Array of subscribed publication names. These reference publications defined in the upstream database. For more on publications see Publication. |
suborigin The origin value must be either |
: pg_subscription Columns