PostgreSQL 19 ← 18
+ subretaindeadtuples+ submaxretention+ subretentionactive+ subserver+ subwalrcvtimeout~ subconninfo: not_null: true → false2 column description updates
SYSTEM CATALOG · System catalog
The catalog pg_subscription contains all existing logical replication subscriptions. For more information about logical replication see Chapter 29. 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.
Checked column by column against a PostgreSQL 18.6 instance · Raw measurement record ↗
| COLUMN | TYPE | DESCRIPTION |
|---|---|---|
oid |
oidNOT NULL |
Row identifier |
subdbid |
oidNOT NULL |
OID of the database that the subscription resides inReferences:pg_database.oid |
subskiplsn |
pg_lsnNOT NULL |
Finish LSN of the transaction whose changes are to be skipped, if a valid LSN; otherwise 0/0. |
subname |
nameNOT NULL |
Name of the subscription |
subowner |
oidNOT NULL |
Owner of the subscriptionReferences:pg_authid.oid |
subenabled |
booleanNOT NULLDocumented as:bool |
If true, the subscription is enabled and should be replicating |
subbinary |
booleanNOT NULLDocumented as:bool |
If true, the subscription will request that the publisher send data in binary format |
substream |
"char"NOT NULLDocumented as:char |
Controls 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) |
subtwophasestate |
"char"NOT NULLDocumented as:char |
State codes for two-phase mode: d = disabled, p = pending enablement, e = enabled |
subdisableonerr |
booleanNOT NULLDocumented as:bool |
If true, the subscription will be disabled if one of its workers detects an error |
subpasswordrequired |
booleanNOT NULLDocumented as:bool |
If true, the subscription will be required to specify a password for authentication |
subrunasowner |
booleanNOT NULLDocumented as:bool |
If true, the subscription will be run with the permissions of the subscription owner |
subfailover |
booleanNOT NULLDocumented as:bool |
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 |
textNOT NULL |
Connection string to the upstream database |
subslotname |
name |
Name of the replication slot in the upstream database (also used for the local replication origin name); null represents NONE |
subsynccommit |
textNOT NULL |
The synchronous_commit setting for the subscription's workers to use |
subpublications |
text[]NOT NULL |
Array of subscribed publication names. These reference publications defined in the upstream database. For more on publications see Section 29.1. |
suborigin |
text |
The 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. |
Columns marked "implicit" are not included in SELECT *; some early statistics views are completed from same-version source, and the extra provenance is shown in the column description.
System attributes PostgreSQL provides, normally not expanded by SELECT *. Kept separately so they are not mixed in with ordinary columns.
| Columns | Type | attnum |
|---|---|---|
tableoid | oid | -6 |
cmax | cid | -5 |
xmax | xid | -4 |
cmin | cid | -3 |
xmin | xid | -2 |
ctid | tid | -1 |
9.0 is the coverage baseline; a column already present in the baseline is not marked as added. The matrix aligns columns by name, so a rename appears as the old column removed and a new column added.
PostgreSQL 19 ← 18
PostgreSQL 18 ← 17
PostgreSQL 17 ← 16
PostgreSQL 16 ← 15
PostgreSQL 15 ← 14
PostgreSQL 14 ← 13
PostgreSQL 13 ← 12
PostgreSQL 12 ← 11
PostgreSQL 11 ← 10
PostgreSQL 10 ← 9.6Catalog added
Pick two versions to see added, removed, and retyped columns. The interactive comparison needs JavaScript; the evolution timeline reads fine without it.