Re: BUG #19029: Replication Slot size keeps increasing while logical subscription works fine - Mailing list pgsql-bugs

From Amit Kapila
Subject Re: BUG #19029: Replication Slot size keeps increasing while logical subscription works fine
Date
Msg-id CAA4eK1LJcjD8DxhD+wPj--xWi2sDNZSfvgmxbmZV0XUSnv=D5Q@mail.gmail.com
Whole thread Raw
In response to BUG #19029: Replication Slot size keeps increasing while logical subscription works fine  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #19029: Replication Slot size keeps increasing while logical subscription works fine
List pgsql-bugs
On Sun, Aug 24, 2025 at 3:14 AM PG Bug reporting form
<noreply@postgresql.org> wrote:
>
> The following bug has been logged on the website:
>
> Bug reference:      19029
> Logged by:          Thadeus Anand
> Email address:      thadeus@rmkv.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.



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #19030: Hash join leads to extremely high memory usage
Next
From: Thadeus Anand
Date:
Subject: Re: BUG #19029: Replication Slot size keeps increasing while logical subscription works fine