Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTanA-0004Kh-19 for pgsql-admin@arkaria.postgresql.org; Wed, 22 May 2019 23:37:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hTan6-000592-JS for pgsql-admin@arkaria.postgresql.org; Wed, 22 May 2019 23:37:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTan6-000587-6T for pgsql-admin@lists.postgresql.org; Wed, 22 May 2019 23:37:00 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTamz-0003Ob-17 for pgsql-admin@lists.postgresql.org; Wed, 22 May 2019 23:36:58 +0000 Received: by mail-qt1-x842.google.com with SMTP id f24so4590884qtk.11 for ; Wed, 22 May 2019 16:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=instacart.com; s=google; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=PS2bE6f2SriUQ9EAGX8wh2vDsqEmNxVSxJEoW4pfMuA=; b=OhJ65QiMvsXQmOt0NJqI3PzRIb30NMtAExktY7xZrj0KJZxo4St4y/7/uSx3xv5Ytq XJvwreIJ+eFqg4vM83bYXuIXuT/Ij5WwBuX04SzwFgm+GgrfjZ0J9wzu82Zsg/VmjQ3N 0ScuoT6skY7hMBAeRhro+uQObDMpaXuJN7Dug= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=PS2bE6f2SriUQ9EAGX8wh2vDsqEmNxVSxJEoW4pfMuA=; b=WtS/H3ZJp3l0iCYmVe8AEXwVzYklbeHRodS6UvTBALmLL8ZPei71OCx3zgo8E528La hlVEZ5cHyTzWOGpm/+0WWj83n6xcMVa2gwFunYkdu6kJ8FhWVZJTmRpASCLlxr0wNBZZ zpQCw29Zs7r5cU5d4iCsaUd68TEp++pLuCyFvuLsUJ1l1dQ6N5nkQ26/+1X4O8ms2tgg FZOPyjtpKmD9VKY1EuNpK/MN/IQhlOePj4fkuzIphW6Zk8F/pKdeHS3tffJ7xPWIIEPl fD0fHso9cjbYInYfOr+h+oGo7eMPBwQQrpdgxWuAWrvHDmNwxlaXHHJ+XP2cqygxsJnj xX0g== X-Gm-Message-State: APjAAAWsFWy/ei7jH3uLLOvUpNha8ghCGLG9ejJjAAFgzF0qWZ1KCT+z FbZu0LDkNiNB5qm0122Kc3EvdyGFtU0mpOQP X-Google-Smtp-Source: APXvYqx15eYJgz1bLg7g6hF1/d1ZpKY14Xfdd4crMQPS8sGaL2m/+dFeSsndJfcdlHFlMbKrlF5UUw== X-Received: by 2002:a0c:8b6f:: with SMTP id d47mr26905229qvc.32.1558568211924; Wed, 22 May 2019 16:36:51 -0700 (PDT) Received: from ip-10-0-62-183.ec2.internal ([38.140.108.235]) by smtp.gmail.com with ESMTPSA id t47sm13269317qtb.43.2019.05.22.16.36.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 May 2019 16:36:51 -0700 (PDT) From: Lev Kokotov Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Meaning of srsubstate values in pg_subscription_rel Message-Id: Date: Wed, 22 May 2019 16:36:49 -0700 To: pgsql-admin@lists.postgresql.org X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, We are subscribing to a publication with multiple tables. What would = cause a subscription state to stay in =E2=80=9Csynchronizing=E2=80=9D = (`s`) and not move into =E2=80=9Creplicating=E2=80=9D (`r`) during = logical replication? I=E2=80=99m 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=E2=80=99m using = https://www.postgresql.org/docs/10/catalog-pg-subscription-rel.html as = reference. Thank you! Best, Lev=