目錄 pg_subscription_rel 包含每個訂閱中每個複寫關係的狀態。這是多對多的關連情況。
在執行 CREATE SUBSCRIPTION 或 ALTER SUBSCRIPTION ... REFRESH PUBLICATION 之後才會更新,此目錄僅會包含已知的訂閱資料表。
pg_subscription_rel
Column Type
Description
srsubid oid (references pg_subscriptionarrow-up-right.oid)
srsubid
oid
pg_subscription
Reference to subscription
srrelid oid (references pg_classarrow-up-right.oid)
srrelid
pg_class
Reference to relation
srsubstate char
srsubstate
char
State code: i = initialize, d = data is being copied, s = synchronized, r = ready (normal replication)
i
d
s
r
srsublsn pg_lsn
srsublsn
pg_lsn
Remote LSN of the state change used for synchronization coordination when in s or r states, otherwise null
Last updated 4 years ago
Was this helpful?