| From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
|---|---|
| To: | Lev Kokotov <lev(dot)kokotov(at)instacart(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Meaning of srsubstate values in pg_subscription_rel |
| Date: | 2019-05-23 04:17:27 |
| Message-ID: | cf39d2bbb706c4e79eb9b31139b0fc42a7b829f2.camel@cybertec.at |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
Lev Kokotov wrote:
> 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.
Is the state "s" (which means "synchroniz*ed*", not "synchroniz*ing*") shown
for all tables in the subscription?
Do you see any pertinent log messages on the standby server?
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mariel Cherkassky | 2019-05-23 08:20:25 | upgrade to PG11 on secondary fails (no initdb was launched) |
| Previous Message | Lev Kokotov | 2019-05-22 23:36:49 | Meaning of srsubstate values in pg_subscription_rel |