## 52.53. `pg_subscription_rel`

[]()

 The catalog `pg_subscription_rel` contains the state for each replicated relation in each subscription. This is a many-to-many mapping.

 This catalog only contains tables known to the subscription after running either [`CREATE SUBSCRIPTION`](sql-createsubscription.html) or [`ALTER SUBSCRIPTION ... REFRESH PUBLICATION`](sql-altersubscription.html).

**Table 52.53. `pg_subscription_rel` Columns**

|                                                                   Column Type<br/><br/> Description                                                                   |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|                       `srsubid` `oid` (references [`pg_subscription`](catalog-pg-subscription.html).`oid`)<br/><br/> Reference to subscription                        |
|                                `srrelid` `oid` (references [`pg_class`](catalog-pg-class.html).`oid`)<br/><br/> Reference to relation                                 |
|`srsubstate` `char`<br/><br/> State code: `i` = initialize, `d` = data is being copied, `f` = finished table copy, `s` = synchronized, `r` = ready (normal replication)|
|             `srsublsn` `pg_lsn`<br/><br/> Remote LSN of the state change used for synchronization coordination when in `s` or `r` states, otherwise null              |

