2 52.54. pg_subscription #
4 The catalog pg_subscription contains all existing logical replication
5 subscriptions. For more information about logical replication see
8 Unlike most system catalogs, pg_subscription is shared across all
9 databases of a cluster: there is only one copy of pg_subscription per
10 cluster, not one per database.
12 Access to the column subconninfo is revoked from normal users, because
13 it could contain plain-text passwords.
15 Table 52.54. pg_subscription Columns
25 subdbid oid (references pg_database.oid)
27 OID of the database that the subscription resides in
31 Finish LSN of the transaction whose changes are to be skipped, if a
32 valid LSN; otherwise 0/0.
36 Name of the subscription
38 subowner oid (references pg_authid.oid)
40 Owner of the subscription
44 If true, the subscription is enabled and should be replicating
48 If true, the subscription will request that the publisher send data in
53 Controls how to handle the streaming of in-progress transactions: f =
54 disallow streaming of in-progress transactions, t = spill the changes
55 of in-progress transactions to disk and apply at once after the
56 transaction is committed on the publisher and received by the
57 subscriber, p = apply changes directly using a parallel apply worker if
58 available (same as t if no worker is available)
62 State codes for two-phase mode: d = disabled, p = pending enablement, e
67 If true, the subscription will be disabled if one of its workers
70 subpasswordrequired bool
72 If true, the subscription will be required to specify a password for
77 If true, the subscription will be run with the permissions of the
82 If true, the associated replication slots (i.e. the main slot and the
83 table synchronization slots) in the upstream database are enabled to be
84 synchronized to the standbys
88 Connection string to the upstream database
92 Name of the replication slot in the upstream database (also used for
93 the local replication origin name); null represents NONE
97 The synchronous_commit setting for the subscription's workers to use
99 subpublications text[]
101 Array of subscribed publication names. These reference publications
102 defined in the upstream database. For more on publications see
107 The origin value must be either none or any. The default is any. If
108 none, the subscription will request the publisher to only send changes
109 that don't have an origin. If any, the publisher sends changes
110 regardless of their origin.