pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lev Kokotov <lev.kokotov@instacart.com>
To: pgsql-admin@lists.postgresql.org
Subject: Meaning of srsubstate values in pg_subscription_rel
Date: Wed, 22 May 2019 16:36:49 -0700
Message-ID: <A7FB58FA-3C2F-4659-9621-C1329B60797F@instacart.com> (raw)

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




view thread (2+ messages)  latest in thread

Message-ID: <A7FB58FA-3C2F-4659-9621-C1329B60797F@instacart.com>
Permalink:  ../A7FB58FA-3C2F-4659-9621-C1329B60797F@instacart.com/
Also on:    postgresql.org/message-id/A7FB58FA-3C2F-4659-9621-C1329B60797F@instacart.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: lev.kokotov@instacart.com
  Subject: Re: Meaning of srsubstate values in pg_subscription_rel
  In-Reply-To: <A7FB58FA-3C2F-4659-9621-C1329B60797F@instacart.com>
  References: <A7FB58FA-3C2F-4659-9621-C1329B60797F@instacart.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox