Re: Multicolumn foreign keys need useless unique indices?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Multicolumn foreign keys need useless unique indices?
Дата
Msg-id 26846.1032016463@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Multicolumn foreign keys need useless unique indices?  (Hannu Krosing <hannu@tm.ee>)
Ответы Re: Multicolumn foreign keys need useless unique indices?  (Hannu Krosing <hannu@tm.ee>)
Список pgsql-hackers
Hannu Krosing <hannu@tm.ee> writes:
> If we have unique index on t.i and we define additional unique
> constraint on (t.i, t.j), then we don't need the extra unique index to
> be created - the index on t.i is enough to quarantee the uniqueness of
> (t.i,t.j) or any set of columns that includes t.i.

You missed the point: we are concerned about existence of a row, not only
uniqueness.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: DROP TABLE... CASCADE weirdness
Следующее
От: Tom Lane
Дата:
Сообщение: Re: time default