Re:Propose: Adding a '--enable-failover' option to 'pg_createsubscriber' - Mailing list pgsql-hackers

From 高雪玉
Subject Re:Propose: Adding a '--enable-failover' option to 'pg_createsubscriber'
Date
Msg-id 4691855d.9719.19b07beda44.Coremail.gaoxueyu_hope@163.com
Whole thread Raw
In response to Propose: Adding a '--enable-failover' option to 'pg_createsubscriber'  (Ioseph Kim <pgsql-kr@postgresql.kr>)
Responses Re: Propose: Adding a '--enable-failover' option to 'pg_createsubscriber'
List pgsql-hackers
Hi, 
I have one comment to following comment:

pg_createsubscriber.c, the comment is not correct as this new option is not related with logical replication slot.
bool failover; /* enable failover option of logical replication slot */

Suggest to change to:
/* enable failover option of subscription */

Thanks,
Xueyu Gao 
HighGo Software Co., Ltd.
https://www.highgo.com/

At 2025-12-10 17:03:48, "Ioseph Kim" <pgsql-kr@postgresql.kr> wrote:
>Hi
>
>A failover option has been added to the CREATE SUBSCRITION command, but this functionality isn't easily accessible using the pg_createsubscriber tool.
>
>Subscriptions created using pg_createsubscriber must be configured for failover via an alter operation.
>
>To address this issue, we've added a simple --enable-failover option to the pg_createsubscriber tool.
>
>This patch is simple. It doesn't handle exceptions or provide any TAP test code.
>
>Please review this and we hope the development team will refine it further.
>
>ioseph

pgsql-hackers by date:

Previous
From: shveta malik
Date:
Subject: Re: POC: enable logical decoding when wal_level = 'replica' without a server restart
Next
From: Tomas Vondra
Date:
Subject: Re: Add a greedy join search algorithm to handle large join problems