Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mZump-0008Da-SX for pgsql-general@arkaria.postgresql.org; Mon, 11 Oct 2021 12:52:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mZumo-0003BS-O8 for pgsql-general@arkaria.postgresql.org; Mon, 11 Oct 2021 12:52:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mZumo-0003BK-Bx for pgsql-general@lists.postgresql.org; Mon, 11 Oct 2021 12:52:10 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mZumm-0001ae-2m for pgsql-general@postgresql.org; Mon, 11 Oct 2021 12:52:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XMptFsRVBaFBciOGJomCTaOhJ+ImcMaHgaHzK0yq1Yg=; b=poi/I5oO+IZQK/y+xhYpVM7We5 FXa86ycxK7O5Da9hVHohwmXBLYnsQ3InFkyCqkxosqYOJjWTnPqMVpQkYIQdBziP4sPzMoC7rBaZQ uMfwal3g2YhDF3SwqAnanwt2z93cIZTAgJZfHylHyDZwLmiljHA3D0dRfWXAg/Z9iIxQ=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1mZumi-0005qG-KB; Mon, 11 Oct 2021 14:52:04 +0200 Date: Mon, 11 Oct 2021 14:52:04 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Pawan Sharma Cc: "pgsql-general@postgresql.org >> PG-General Mailing List" Subject: Re: Check Replication lag Message-ID: <20211011125204.GA18100@depesz.com> Reply-To: depesz@depesz.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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