Re: Disallow changing slot's failover option in transaction block

Поиск
Список
Период
Сортировка
Искать
От
Bertrand Drouvot
Тема
Re: Disallow changing slot's failover option in transaction block
Дата
Msg-id
Zh4o3OAzPFFDIW+f@ip-10-97-1-34.eu-west-3.compute.internal
Ответ на
Список
Дерево обсуждения
Disallow changing slot's failover option in transaction block "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
RE: Disallow changing slot's failover option in transaction block "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Disallow changing slot's failover option in transaction block shveta malik <shveta.malik@gmail.com>
Re: Disallow changing slot's failover option in transaction block Amit Kapila <amit.kapila16@gmail.com>
Re: Disallow changing slot's failover option in transaction block shveta malik <shveta.malik@gmail.com>
RE: Disallow changing slot's failover option in transaction block "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Re: Disallow changing slot's failover option in transaction block shveta malik <shveta.malik@gmail.com>
RE: Disallow changing slot's failover option in transaction block "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
RE: Disallow changing slot's failover option in transaction block "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Re: Disallow changing slot's failover option in transaction block shveta malik <shveta.malik@gmail.com>
Re: Disallow changing slot's failover option in transaction block Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Disallow changing slot's failover option in transaction block Amit Kapila <amit.kapila16@gmail.com>
Re: Disallow changing slot's failover option in transaction block Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Disallow changing slot's failover option in transaction block Michael Paquier <michael@paquier.xyz>
RE: Disallow changing slot's failover option in transaction block "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Disallow changing slot's failover option in transaction block shveta malik <shveta.malik@gmail.com>
RE: Disallow changing slot's failover option in transaction block "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Re: Disallow changing slot's failover option in transaction block Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Hi,

On Tue, Apr 16, 2024 at 06:32:11AM +0000, Zhijie Hou (Fujitsu) wrote:
> Hi,
> 
> Kuroda-San reported an issue off-list that:
> 
> If user execute ALTER SUBSCRIPTION SET (failover) command inside a txn block
> and rollback, only the subscription option change can be rolled back, while the
> replication slot's failover change is preserved.

Nice catch, thanks!

> To fix it, I think we can prevent user from executing ALTER SUBSCRIPTION set
> (failover) inside a txn block, which is also consistent to the ALTER
> SUBSCRIPTION REFRESH/DROP SUBSCRIPTION command. Attach a small
> patch to address this.

Agree. The patch looks pretty straightforward to me. Worth to add this
case in the doc? (where we already mention that "Commands ALTER SUBSCRIPTION ...
REFRESH PUBLICATION and ALTER SUBSCRIPTION ... {SET|ADD|DROP} PUBLICATION ...
with refresh option as true cannot be executed inside a transaction block"

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com


В списке pgsql-hackers по дате отправления
От: Quan Zongliang
Дата:
От: Ajin Cherian
Дата:
FAQ