Logical replication data lag

From: Siraj G <tosiraj(dot)g(at)gmail(dot)com>
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Logical replication data lag
Date: 2024-07-31 03:19:12
Message-ID: CAC5iy61tQcOGkeVoSZtTg5H8m8sDquafhsGbP-ei3x=3twfxCw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello Admins!

I am trying to find the replication lag in the target that is being
replicated using pglogical. I do not see any data in pg_stat_subscription.
We are replicating data from GCP cloud SQL to a compute instance within the
same VCN.

I get the status report in the target as replication, but not sure why
pg_stat_subscription does not show anything.

Should I do it programmatically by creating a heartbeat table on the
source, add it to the replication and monitor the data in this to get the
report?

Thanks in advance!
Regards
Siraj

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Siraj G 2024-07-31 04:39:48 Re: Logical replication data lag
Previous Message Rajesh Kumar 2024-07-31 01:18:16 Re: DR setup in RHOS