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_rel

Read PG 18 manual ↗

The catalog pg_subscription_rel contains the state for each replicated relation in each subscription.

Kind
System catalogs
Columns in this snapshot
4
Definition source
English manual

Columns 4

ColumnTypeDescription / reference
srsubidoidReference to subscription
pg_subscription.oid
srrelidoidReference to relation
pg_class.oid
srsubstatecharState code: i = initialize, d = data is being copied, f = finished table copy, s = synchronized, r = ready (normal replication)
srsublsnpg_lsnRemote LSN of the state change used for synchronization coordination when in s or r states, otherwise null
Column history across versions
Version history 3
  1. PG 18 → 19changed
  2. PG 13 → 14changed
  3. PG 9.6 → 10added

Definition snapshot: english-manuals:6361fe0b58345b7301d2d5513c5… · English manual source