Re: Question about Foreign key constraint causes "costly
В списке pgsql-general по дате отправления:
| От | Emi Lu |
|---|---|
| Тема | Re: Question about Foreign key constraint causes "costly |
| Дата | |
| Msg-id | 430B3EA4.6000604@cs.concordia.ca обсуждение исходный текст |
| Ответ на | Re: Question about Foreign key constraint causes "costly sequential scans"? (Michael Fuhr <mike@fuhr.org>) |
| Список | pgsql-general |
Thanks a lot for all helps. I do not have warnings anymore :-) >>I'd like to setup foreign key constraint for A.col3, as the following: >>CONSTRAINT Aclo3_fk FOREIGN KEY (col3) REFERENCES B(colB1) >> >>But I got a warning msg from postgresql as: >> >> foreign key constraint "Aclo3_fk" will require costly sequential scans >> >> > >Is there not a DETAIL message following this warning? It should >explain the problem: the referring and the referred-to columns are >of different types. > >Additionally, it's usually a good idea to create an index on the >referring column (A.col3) to speed up referential integrity checks >when modifying the referred-to table (B). > > >
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера