Re: Fix slot synchronization with two_phase decoding enabled
От | shveta malik |
---|---|
Тема | Re: Fix slot synchronization with two_phase decoding enabled |
Дата | |
Msg-id | CAJpy0uDU101gCpXoSvVn_6s2bg50Qp+Gvt6rt4ZqmuhffmMvsg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Fix slot synchronization with two_phase decoding enabled (Nisha Moond <nisha.moond412@gmail.com>) |
Ответы |
Re: Fix slot synchronization with two_phase decoding enabled
|
Список | pgsql-hackers |
On Thu, Apr 24, 2025 at 2:54 PM Nisha Moond <nisha.moond412@gmail.com> wrote: > > Please find the updated patch for Approach 3, which implements the > idea suggested by Swada-san above. > Thank You for the patch. 1) CreateDecodingContext: if (ctx->twophase && !slot->data.two_phase) { + /* + * Do not allow two-phase decoding for failover enabled slots. + * + * See comments atop the similar check in ReplicationSlotCreate() for + * a detailed reason. + */ + if (slot->data.failover) + ereport(ERROR, + (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), + errmsg("cannot enable two-phase decoding for failover enabled slot \"%s\"", + NameStr(slot->data.name)))); + Can you please add tetscase to cover this scenario? 2) We shall update create-sub documents as well for these mutually exclusive options. Review other pages (alter-sub, create-slot) as well for any required change. 3) +################################################## +# Test that the failover option can be enabled for a two_phase enabled +# subscription. +################################################## Suggestion: 'Test that the failover option can be enabled for a two_phase enabled subscription only through Alter Subscription (failover=true)' thanks Shveta
В списке pgsql-hackers по дате отправления: