Re: Foreign key type checking patch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Foreign key type checking patch
Дата
Msg-id 1151.1078164719@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Foreign key type checking patch  (Fabien COELHO <coelho@cri.ensmp.fr>)
Ответы Re: Foreign key type checking patch  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-patches
Fabien COELHO <coelho@cri.ensmp.fr> writes:
> I must admit that I do not understand your point.

> I wish I would have a WARNING if a foreign key is not declared exactly as
> the key it references.

The reason why people want such a warning is that the RI checks tend to
be slow if it's not the case.  Accordingly, the warning should only
appear if the check is actually going to be slow.

You sound like you think it's a bug that Postgres supports cross-type FK
references at all.  I disagree.  It's a feature, albeit one whose
implementation could stand improvement.  The warning ought to come out
in cases where people are going to be exposed to the implementation
weaknesses.

            regards, tom lane

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: minor doc improvement
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Foreign key type checking patch