Re: Issue with logical replication slot during switchover

From: shveta malik <shveta(dot)malik(at)gmail(dot)com>
To: Fabrice Chapuis <fabrice636861(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com>
Subject: Re: Issue with logical replication slot during switchover
Date: 2025-10-08 10:27:26
Message-ID: CAJpy0uDEeA-3JvcReQMdYirH6wQTMfkbmhNYCzq_xUf9QiaJPg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Oct 3, 2025 at 1:28 PM Fabrice Chapuis <fabrice636861(at)gmail(dot)com> wrote:
>
> Hi Shveta,
> Here is the v4 of the patch with pg_replication_slots view modified to display the field allow_overwrite. Doc was also updated.
>

The patch looks okay. The parameter name is still open for discussion,
and the comments could be improved. But we can focus on these finer
details once more reviewers start reviewing and there’s general
agreement on the concept.

One trivial comment: we can slightly modify the doc to have something like this:

This parameter controls whether an existing logical replication slot
on the standby (with synced=false) can be overwritten during logical
replication slot synchronization (see Section 47.2.3). The default is
false. When true, an existing user slot with the same name on the
standby will be synchronized using the primary’s failover slot.

<please see high-availability.sgml to find how 'Section 47.2.3' can be
referenced in the doc>
~~

The next step will be to provide a way to modify this parameter via an
alter API, say pg_alter_logical_replication_slot(). This API can later
be extended to handle other parameters. This API can be implemented in
patch002 for easier review.

thanks
Shveta

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2025-10-08 11:14:39 Re: Eager aggregation, take 3
Previous Message vignesh C 2025-10-08 10:19:57 Re: Logical Replication of sequences