Meaning of srsubstate values in pg_subscription_rel

From: Lev Kokotov <lev(dot)kokotov(at)instacart(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Meaning of srsubstate values in pg_subscription_rel
Date: 2019-05-22 23:36:49
Message-ID: A7FB58FA-3C2F-4659-9621-C1329B60797F@instacart.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Postgres doing in each state?

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

Thank you!

Best,
Lev

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2019-05-23 04:17:27 Re: Meaning of srsubstate values in pg_subscription_rel
Previous Message Tomas Vondra 2019-05-22 17:00:51 Re: pg_restore takes more time on creation of rules