From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Durgamahesh Manne <maheshpostgres9@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Cc: PostgreSQL mailing lists <pgsql-general@postgresql.org>
Subject: Re: Regarding huge logical slot lag between source and target
Date: Sun, 18 Oct 2026 20:43:46 +0200
Message-ID: <93db43ba32753c2197a8e8a9253924342f633a48.camel@cybertec.at> (raw)
In-Reply-To: <CAJCZko+uFAWj4vZAzEXR_guHjewMmd9doYUGUcvCH=ku9OUWoQ@mail.gmail.com>
References: <CAJCZkoKxTLGZfYu0uT6ihZe0dPzqcjeA-TKWkgDEhaFAadhVew@mail.gmail.com>
<28a109ddf0ecc56465676a878565acb29d225709.camel@cybertec.at>
<CAJCZko+uFAWj4vZAzEXR_guHjewMmd9doYUGUcvCH=ku9OUWoQ@mail.gmail.com>
On Sun, 2026-10-18 at 23:11 +0530, Durgamahesh Manne wrote:
> On Sun, 18 Oct, 2026, 22:52 Laurenz Albe, <laurenz.albe@cybertec.at> wrote:
> > On Sun, 2026-10-18 at 19:49 +0530, Durgamahesh Manne wrote:
> > > Logical slot lag 330GB on source grows faster during the huge modifications but it should be minimized which is not happened when load goes down.
> > >
> > > What is the action need to take for minimizing the lag to normal state.
> > > Source version 16
> > > Target version 16
> > > Sufficient resources allocated and tuned replication related parameters
> >
> > [I suggested "streaming = parallel" and increasing some parameters}
>
> I already set those params with required values to make server running smoothly
>
> Alter subscription also done with binary and streaming options
>
> Finally I could not find root cause what has caused to increase of that much lag.
>
> No long running queries at source
> No blocking at target
> Generally what might be reason to huge lag in terms of hundreds which can't go down.
Perhaps DDL statements on the publisher.
Yours,
Laurenz Albe
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, maheshpostgres9@gmail.com
Subject: Re: Regarding huge logical slot lag between source and target
In-Reply-To: <93db43ba32753c2197a8e8a9253924342f633a48.camel@cybertec.at>
References: <CAJCZkoKxTLGZfYu0uT6ihZe0dPzqcjeA-TKWkgDEhaFAadhVew@mail.gmail.com> <28a109ddf0ecc56465676a878565acb29d225709.camel@cybertec.at> <CAJCZko+uFAWj4vZAzEXR_guHjewMmd9doYUGUcvCH=ku9OUWoQ@mail.gmail.com> <93db43ba32753c2197a8e8a9253924342f633a48.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