Re: Check Replication lag

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Pawan Sharma <pawanpg0963(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Check Replication lag
Date: 2021-10-11 12:52:04
Message-ID: 20211011125204.GA18100@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Oct 11, 2021 at 05:58:03PM +0530, Pawan Sharma wrote:
> Is there a way to monitor the replication lag, where replica nodes are
> configured through aws s3.

You can check it on replica, by issuing:
select now() - pg_last_xact_replay_timestamp();

and it will show you, more or less, what is your current lag.

Best regards,

depesz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pawan Sharma 2021-10-11 16:59:19 Re: Check Replication lag
Previous Message Pawan Sharma 2021-10-11 12:28:03 Check Replication lag