Re: make VALIDATE domain constraint lock on related relations as ShareUpdateExclusiveLock

Поиск
Список
Период
Сортировка
От wenhui qiu
Тема Re: make VALIDATE domain constraint lock on related relations as ShareUpdateExclusiveLock
Дата
Msg-id CAGjGUAJjV=6JY9cZ_JwonKrOMtRfcwKZ-a1jLF=UJ2xD9yan5A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: make VALIDATE domain constraint lock on related relations as ShareUpdateExclusiveLock  (Dilip Kumar <dilipbalaut@gmail.com>)
Список pgsql-hackers
HI 
   Thanks for the patch! and overall this is a valuable improvement in terms of concurrency and consistency with table-level behavior.The refactoring to pass LOCK MODE into validateDomainCheckConstraint() improves flexibility and clarity. and the patch also looks good to me.


Regards

On Tue, May 13, 2025 at 2:23 PM Dilip Kumar <dilipbalaut@gmail.com> wrote:
On Tue, May 13, 2025 at 8:57 AM jian he <jian.universality@gmail.com> wrote:
>
> hi.
>
> We can still perform DML operations on a table while validating its
> check constraint.
> Similarly, it should be fine to do DML while validating domain constraints?
> but currently, it's not allowed for domain constraints.
>
> The attached patch addresses this problem.

This makes sense, and the patch also looks good to me.

--
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com


В списке pgsql-hackers по дате отправления: