On Fri, 2026-03-20 at 10:47 +0000, Subramanian,Ramachandran wrote:
> how can the last replayed be more than the last received?
It shouldn't be - but I don't understand your script, in particular
which query is issused on which server.
Look at "pg_stat_replication" on the primary server.
Yours,
Laurenz Albe