Re: [CAUTION: SUSPECT SENDER] RE: [CAUTION: SUSPECT SENDER] RE: BUG #19029: Replication Slot size keeps increasing while logical subscription works fine

From: Thadeus Anand <thadeus(at)rmkv(dot)com>
To: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Subject: Re: [CAUTION: SUSPECT SENDER] RE: [CAUTION: SUSPECT SENDER] RE: BUG #19029: Replication Slot size keeps increasing while logical subscription works fine
Date: 2025-08-25 10:03:51
Message-ID: CANUywMFzW=M4OC++awgN-n=-9yk8z5pM=1XV+1QxThpGwiuXvw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

The logical_decoding_work_mem at the publisher is currently set at 1 GB.

I remember setting this a while ago as part of my struggle to get rid of
the memory allocation issue.

Thadeus Anand.

On Mon, 25 Aug, 2025, 3:19 pm Hayato Kuroda (Fujitsu), <
kuroda(dot)hayato(at)fujitsu(dot)com> wrote:

> Dear Thadeus,
>
> > Under the pg_replslot folder, each replication slot's folder increased
> > simultaneously. There were 12 folders (two publications, six
> subscribers), and
> > the total size increase was about 420 GB).
>
> Oh, I misunderstood like that number of WAL files increased.
>
> Let me do some more questions to diagnose your system.
> Can you share us the logical_decoding_work_mem on the publisher side? You
> can obtain via:
> ```
> SHOW logical_decoding_work_mem;
> ```
>
> Also, when you succeeded to reproduce, can you run the below command to
> see the
> conent of the directory? ${DATA_PUB} can be tuned based on your
> environment.
> ```
> du -sh ${DATA_PUB}/pg_replslot/*/*
> ```
> This can see for which file uses the disk so much.
>
> Best regards,
> Hayato Kuroda
> FUJITSU LIMITED
>
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message vignesh C 2025-08-25 10:05:59 Re: BUG #19029: Replication Slot size keeps increasing while logical subscription works fine
Previous Message Hayato Kuroda (Fujitsu) 2025-08-25 09:49:09 RE: [CAUTION: SUSPECT SENDER] RE: BUG #19029: Replication Slot size keeps increasing while logical subscription works fine