Re: BUG #19029: Replication Slot size keeps increasing while logical subscription works fine

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: thadeus(at)rmkv(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19029: Replication Slot size keeps increasing while logical subscription works fine
Date: 2025-08-25 03:51:02
Message-ID: CAA4eK1LJcjD8DxhD+wPj--xWi2sDNZSfvgmxbmZV0XUSnv=D5Q@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sun, Aug 24, 2025 at 3:14 AM PG Bug reporting form
<noreply(at)postgresql(dot)org> wrote:
>
> The following bug has been logged on the website:
>
> Bug reference: 19029
> Logged by: Thadeus Anand
> Email address: thadeus(at)rmkv(dot)com
> PostgreSQL version: 17.6
> Operating system: Ubuntu 24.04.2
> Description:
>
> We have seven servers distributed geographically. We publish about 62 tables
> through logical replication, with six subscribers. We were hugely affected
> by the memory allocation bug after upgrading to 17.5. We had to suspend the
> replication and resort to manually updating the tables.
>
> So we updated to 17.6 almost immediately. Now the logical replication works
> perfectly, but we notice the replication slot folders increasing in size
> quite dramatically, even when there is no lag found in the subscribers.
>

What do you mean by this? Do you mean that restart_lsn of logical
slots is not moving forward or number of slots are growing in
$PGDATA/pg_replslot or something else? Specifically, I want to know
what do you mean by: 'but we notice the replication slot folders
increasing in size'?

--
With Regards,
Amit Kapila.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Thadeus Anand 2025-08-25 05:09:19 Re: BUG #19029: Replication Slot size keeps increasing while logical subscription works fine
Previous Message Tom Lane 2025-08-23 22:29:03 Re: BUG #19030: Hash join leads to extremely high memory usage