pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to know if initial sync of logical subscription is finished
3+ messages / 2 participants
[nested] [flat]

* How to know if initial sync of logical subscription is finished
@ 2020-02-26 16:48  Klaus Darilion <klaus.mailinglists@pernau.at>
  0 siblings, 1 reply; 3+ messages in thread

From: Klaus Darilion @ 2020-02-26 16:48 UTC (permalink / raw)
  To: PostgreSQL General <pgsql-general@lists.postgresql.org>

Hello all!

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?

Thanks
Klaus





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to know if initial sync of logical subscription is finished
@ 2020-05-05 07:33  Klaus Darilion <klaus.mailinglists@pernau.at>
  parent: Klaus Darilion <klaus.mailinglists@pernau.at>
  0 siblings, 1 reply; 3+ messages in thread

From: Klaus Darilion @ 2020-05-05 07:33 UTC (permalink / raw)
  To: PostgreSQL General <pgsql-general@lists.postgresql.org>

Am 26.02.2020 um 17:48 schrieb Klaus Darilion:
> Hello all!
> 
> 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.

Thanks
Klaus





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to know if initial sync of logical subscription is finished
@ 2020-05-05 08:15  Laurenz Albe <laurenz.albe@cybertec.at>
  parent: Klaus Darilion <klaus.mailinglists@pernau.at>
  0 siblings, 0 replies; 3+ messages in thread

From: Laurenz Albe @ 2020-05-05 08:15 UTC (permalink / raw)
  To: Klaus Darilion <klaus.mailinglists@pernau.at>; PostgreSQL General <pgsql-general@lists.postgresql.org>

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






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-05-05 08:15 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-02-26 16:48 How to know if initial sync of logical subscription is finished Klaus Darilion <klaus.mailinglists@pernau.at>
2020-05-05 07:33 ` Klaus Darilion <klaus.mailinglists@pernau.at>
2020-05-05 08:15   ` Laurenz Albe <laurenz.albe@cybertec.at>

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