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 Anand <thadeus(at)rmkv(dot)com>
Cc: 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 05:24:48
Message-ID: CAA4eK1Kt38N-wxAD3W4e4evbJBXuviHz5NcS=1x2TFTV7WCugQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, Aug 25, 2025 at 10:39 AM Thadeus Anand <thadeus(at)rmkv(dot)com> wrote:
>
> Hi,
>
> The number of replication slots does not increase at all. But the size of each folder keeps increasing simultaneously.
>

Can you share an example as to what you mean by folder keeps
increasing? Is the slot size on disk is increasing?

> When I restart a subscriber, the size of the respective slot resets, then immediately grows up to the size of the slots of other subscribers.
>

To understand the problem you are facing, we need to see some real
data on the size. Can you share the output of pg_replication_slots
both before and after the folder's size increase?

> The table data is properly synchronized across the locations, and the status of the replication remains as 'streaming'. So, effectively, the logical replication works (which it wasn't in version 17.5), but the replication slot isn't resetting.
>

Is it possible to share a reproducer or some steps to reproduce the problem?

--
With Regards,
Amit Kapila.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Thadeus Anand 2025-08-25 05:44:03 Re: BUG #19029: Replication Slot size keeps increasing while logical subscription works fine
Previous Message Thadeus Anand 2025-08-25 05:09:19 Re: BUG #19029: Replication Slot size keeps increasing while logical subscription works fine