Meaning of srsubstate values in pg_subscription_rel - Mailing list pgsql-admin

From Lev Kokotov
Subject Meaning of srsubstate values in pg_subscription_rel
Date
Msg-id A7FB58FA-3C2F-4659-9621-C1329B60797F@instacart.com
Whole thread Raw
Responses Re: Meaning of srsubstate values in pg_subscription_rel  (Laurenz Albe <laurenz.albe@cybertec.at>)
List pgsql-admin
Hello,

We are subscribing to a publication with multiple tables. What would cause a subscription state to stay in
“synchronizing”(`s`) and not move into “replicating” (`r`) during logical replication? I’m querying the
`pg_subscription_rel`view. 
Also, what is the meaning of each state (i.e. initialize, synchronized, data is being copied, and ready); what is
Postgresdoing in each state? 

I’m using https://www.postgresql.org/docs/10/catalog-pg-subscription-rel.html as reference.

Thank you!

Best,
Lev


pgsql-admin by date:

Previous
From: Mariel Cherkassky
Date:
Subject: Re: pg_restore takes more time on creation of rules
Next
From: Laurenz Albe
Date:
Subject: Re: Meaning of srsubstate values in pg_subscription_rel