Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVsjb-0003mQ-87 for pgsql-general@arkaria.postgresql.org; Tue, 05 May 2020 08:15:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jVsja-0007kA-36 for pgsql-general@arkaria.postgresql.org; Tue, 05 May 2020 08:15:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVsjZ-0007k3-Rc for pgsql-general@lists.postgresql.org; Tue, 05 May 2020 08:15:21 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jVsjW-0002Bj-OL for pgsql-general@lists.postgresql.org; Tue, 05 May 2020 08:15:21 +0000 Received: by mail-wm1-x336.google.com with SMTP id v4so1854182wme.1 for ; Tue, 05 May 2020 01:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=ZSiPgOgq6HNtGHn/jfRkXLu1ysPrS5YlHFWRy2AHFXY=; b=n/uWEhin2b7PntuR1PNyspmgGL1XghoHahoeleoLbwRs8Z1QB7IlysbyffsAOA5CMa RmUM4iO9LWxTC67vyieiOwH6oOFDHF+lpEJfPZKqMyEYsULU14SBdNZX7hllznTl1qxe ZGBYfxCHpWDWqccs5YbBkTjqxnolCB/ySjCmcQLppKsDiM7gUMBjXfWl5zVY26K8JvYa Q67VUatvvSOmzsIWQZ3uANJvVE5EbO2lxPzN2SBKGRbnHUgx4SzP7PAUnesWbgxLtNE9 cNtSeLzNmlMEDW0iNhVEdZTlD/xf5cth+hLgwH9HM0dCl/YFZNUTCtcTyPvuoEoAk7cR H6rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=ZSiPgOgq6HNtGHn/jfRkXLu1ysPrS5YlHFWRy2AHFXY=; b=rDUS0ufmg3athbse0zWMlfiSHttvukFIRUjOodbVYgikVwIqSrJiY1FOMvdcEGqFJO RfIrYZOEHKKqTiaEQd5Yh6Aw6c0Pu+K2fq9e9rLIaBXGfxNc3vqNviuTUOFRB85XcoXY KfyovoE/vu93ko1hDUQMXaDx0SuD2Yqi/A+/xmTN1r6jpacePKDqS8xKk3Be9I4/5Xgr KWwXUMMk/1oMCQEwcgRlUsaFZkbdJ0ae87Qj3aFgTMzmRTr5xrw0VOqsITxd8tKTQVLZ /2tLLLSuAjukrDXJrxrQhkZ88+VyNsUPtOW4pZ02N7xvKxF33rrDhbdb27xIxDGxABhF +1bg== X-Gm-Message-State: AGi0Pua/3KU12l1NtaNaf4AcMpEGA50S4s6Lx59m4+NhkjWAmEUKSqPX 13D14S6Iy6++bUus6e4g5kBzHdZQc5tIyw== X-Google-Smtp-Source: APiQypJUt+0yWzi9KD8Oz99+gvmgoMXXgbdHZgMfj0EdZupKzhRC5OlNHBE1A4MKVSlhSeHjcJfQCg== X-Received: by 2002:a05:600c:2046:: with SMTP id p6mr1886774wmg.177.1588666517906; Tue, 05 May 2020 01:15:17 -0700 (PDT) Received: from dynamic-epxaph215gp4f1osc-pd01.res.v6.highway.a1.net (dynamic-epxaph215gp4f1osc-pd01.res.v6.highway.a1.net. [2001:871:60:e806:264c:4bf6:b041:c2bc]) by smtp.gmail.com with ESMTPSA id y3sm2049650wrm.64.2020.05.05.01.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 01:15:17 -0700 (PDT) Message-ID: Subject: Re: How to know if initial sync of logical subscription is finished From: Laurenz Albe To: Klaus Darilion , PostgreSQL General Date: Tue, 05 May 2020 10:15:16 +0200 In-Reply-To: <3095a663-0903-f97a-e568-b13184b55f21@pernau.at> References: <9741b367-81ed-f91a-a645-db1979b58c28@pernau.at> <3095a663-0903-f97a-e568-b13184b55f21@pernau.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 2020-05-05 at 09:33 +0200, Klaus Darilion wrote: > > When subscribing a slave I need to know when the initial sync is > > finished. Is there some table I can query to know if the initial sync is > > finished? > > No solution to this? At least the replication worker need to be aware if > it has finished the initial sync of all tables. So I wonder if this > information is somewhere exposed to the user. You can see that in the "state" column of "pg_stat_replication", right? Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com