Re: Notice about costly ri checks

Поиск
Список
Период
Сортировка
Искать
От
Fabien COELHO
Тема
Re: Notice about costly ri checks
Дата
Msg-id
Pine.LNX.4.58.0403031624570.28778@sablons.cri.ensmp.fr
Ответ на
Список
Дерево обсуждения
Notice about costly ri checks Fabien COELHO <coelho@cri.ensmp.fr>
Re: Notice about costly ri checks Tom Lane <tgl@sss.pgh.pa.us>
Re: Notice about costly ri checks Fabien COELHO <coelho@cri.ensmp.fr>

> > This patch adds a "notice" at constraint creation time if the referential
> > integrity check is to be "costly", that is the comparison operator
> > involves some coercion.
>
> This is not the correct test at all.

You mean my morning 5mn programming will not be enough? ;-)

> The correct test would involve
> looking in pg_amop to see if the selected operator is a member of the
> opclass for the referenced column's index.  (IIRC there are helper
> functions in lsyscache.c that will make this easier.)

Ok, I'll have a look.

-- 
Fabien Coelho - coelho@cri.ensmp.fr
В списке pgsql-patches по дате отправления
От: Tom Lane
Дата:
От: Fabien COELHO
Дата:
FAQ