| От | Stephan Szabo |
|---|---|
| Тема | Re: Foreign key data type mismatches |
| Дата | |
| Msg-id | 20031201073028.I44545@megazone.bigpanda.com обсуждение исходный текст |
| Ответ на | Foreign key data type mismatches (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-hackers |
On Mon, 1 Dec 2003, Peter Eisentraut wrote: > I was just annoyed to find out that a foreign key doesn't check whether > the referenced column has a sufficiently similar data type, it only checks > whether an = operator exists. This masks schema design errors and typos. > Should this be tightened up, for example using the castability > characteristics between the two data types? Maybe, but IIRC the spec only requires comparability between the types involved. Since we don't use the same rules as the spec for that, existance of equality comparison was treated as the closest match to the requirement at the time.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера