| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера