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