Re: Notice about costly ri checks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Notice about costly ri checks
Дата
Msg-id 12738.1078325919@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Notice about costly ri checks  (Fabien COELHO <coelho@cri.ensmp.fr>)
Ответы Re: Notice about costly ri checks  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-patches
Fabien COELHO <coelho@cri.ensmp.fr> writes:
> 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.  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.)

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Fix usage string for oid2name
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: Notice about costly ri checks