pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Atul Kumar <akumar14871@gmail.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: log wal file transfer in error logs
Date: Thu, 12 Oct 2023 09:18:16 +0200
Message-ID: <56f149e58524ddb251dc18cf9b56e25da9c82263.camel@cybertec.at> (raw)
In-Reply-To: <CA+ONtZ7GAjQ-AX_KiQLgitoZw3BvQJVF=U9Um=_4F5Qt+FUCew@mail.gmail.com>
References: <CA+ONtZ5x1wqogmWh_bGpxB+Mn2n+Y-HpRb22OkDdk5ukuFtMuQ@mail.gmail.com>
	<6202ad1fa40598dd6c0dc25e7d9cd52ca1a462ae.camel@cybertec.at>
	<CA+ONtZ4SBMiZ2g-LjsAyX1cUhsu4r7kAaNsF-fBaYiaReNJtsA@mail.gmail.com>
	<CA+ONtZ7GAjQ-AX_KiQLgitoZw3BvQJVF=U9Um=_4F5Qt+FUCew@mail.gmail.com>

On Wed, 2023-10-11 at 23:20 +0530, Atul Kumar wrote:
> Yes, I meant streamed, I need to log those wal files that are getting streamed
> and replayed on standby servers in error logs of primary as well as standby servers.
> 
> So that I can cross check that whichever file is streamed has been replayed on standby.
> 
> I need to keep a track of these wal files in db error logs.

I don't think you can do that, and it seems like a strange requirement to me.

Instead, you should monitor pg_stat_replication.

Yours,
Laurenz Albe





view thread (5+ messages)

Message-ID: <56f149e58524ddb251dc18cf9b56e25da9c82263.camel@cybertec.at>
Permalink:  ../56f149e58524ddb251dc18cf9b56e25da9c82263.camel@cybertec.at/
Also on:    postgresql.org/message-id/56f149e58524ddb251dc18cf9b56e25da9c82263.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, akumar14871@gmail.com
  Subject: Re: log wal file transfer in error logs
  In-Reply-To: <56f149e58524ddb251dc18cf9b56e25da9c82263.camel@cybertec.at>
  References: <CA+ONtZ5x1wqogmWh_bGpxB+Mn2n+Y-HpRb22OkDdk5ukuFtMuQ@mail.gmail.com> <6202ad1fa40598dd6c0dc25e7d9cd52ca1a462ae.camel@cybertec.at> <CA+ONtZ4SBMiZ2g-LjsAyX1cUhsu4r7kAaNsF-fBaYiaReNJtsA@mail.gmail.com> <CA+ONtZ7GAjQ-AX_KiQLgitoZw3BvQJVF=U9Um=_4F5Qt+FUCew@mail.gmail.com> <56f149e58524ddb251dc18cf9b56e25da9c82263.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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