Re: patch: Distinguish between unique indexes and unique constraints

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: patch: Distinguish between unique indexes and unique constraints
Дата
Msg-id 22202.1271604186@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: patch: Distinguish between unique indexes and unique constraints  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: patch: Distinguish between unique indexes and unique constraints
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> You know, I've never really understood the difference between these
> two types of things, or why we need to support both.  Which may be
> just because I'm slow?

Unique constraints are defined by the SQL standard, and have a syntax
that can't support a lot of the extensions that CREATE INDEX allows.
There's also restrictions in the information_schema views.
So unifying the two concepts completely would be a mess.
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: patch: Distinguish between unique indexes and unique constraints
Следующее
От: Robert Haas
Дата:
Сообщение: Re: patch: Distinguish between unique indexes and unique constraints