From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Klaus Darilion <klaus.mailinglists@pernau.at>
To: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: How to know if initial sync of logical subscription is finished
Date: Tue, 05 May 2020 10:15:16 +0200
Message-ID: <fb831b049a1d4354d4152d2dfa0430f4386fae8f.camel@cybertec.at> (raw)
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>
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
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-general@postgresql.org
Cc: laurenz.albe@cybertec.at, klaus.mailinglists@pernau.at
Subject: Re: How to know if initial sync of logical subscription is finished
In-Reply-To: <fb831b049a1d4354d4152d2dfa0430f4386fae8f.camel@cybertec.at>
References: <9741b367-81ed-f91a-a645-db1979b58c28@pernau.at> <3095a663-0903-f97a-e568-b13184b55f21@pernau.at> <fb831b049a1d4354d4152d2dfa0430f4386fae8f.camel@cybertec.at>
* 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