Re: How to know if initial sync of logical subscription is finished

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Klaus Darilion <klaus(dot)mailinglists(at)pernau(dot)at>, PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: How to know if initial sync of logical subscription is finished
Date: 2020-05-05 08:15:16
Message-ID: fb831b049a1d4354d4152d2dfa0430f4386fae8f.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2020-05-05 08:23:51 Re: Installing Postgis25_11
Previous Message Klaus Darilion 2020-05-05 07:33:35 Re: How to know if initial sync of logical subscription is finished