Re: Re-read subscription state after lock in AlterSubscription
От
Bertrand Drouvot
Тема
Re: Re-read subscription state after lock in AlterSubscription
Дата
Msg-id
aks2jHJeKW8Ay2N5@bdtpg
Ответ на
RE: Re-read subscription state after lock in AlterSubscription (Hayato Kuroda (Fujitsu))
Список
Дерево обсуждения
Re-read subscription state after lock in AlterSubscription Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Re: Re-read subscription state after lock in AlterSubscription Dilip Kumar <dilipbalaut@gmail.com>
RE: Re-read subscription state after lock in AlterSubscription "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Hi Kuroda-san, On Mon, Jul 06, 2026 at 02:43:20AM +0000, Hayato Kuroda (Fujitsu) wrote: > Dear Bertrand, > > Thanks for updating the patch. I found one issue: > > ``` > /* DROP hook for the subscription being removed */ > InvokeObjectDropHook(SubscriptionRelationId, subid, 0); > > ``` > > I think the reporting should be after the loop, otherwise the wrong subid can be > reported. Yeah, and I think this is an existing behavior not related to the patch. Currently, InvokeObjectDropHook() is called before we lock the subscription. I think that makes more sense to do it after the lock is acquired, so this is now changed in 0002. Also addressing Dilip's comment in the attached. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com
В списке pgsql-hackers по дате отправления
От: Amit Kapila
Дата: