Re: BUG #5115: ADD UNIQUE table_constraint with expression

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5115: ADD UNIQUE table_constraint with expression
Дата
Msg-id 14044.1255534674@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #5115: ADD UNIQUE table_constraint with expression  ("Vladimir Kokovic" <vladimir.kokovic@a-asoft.com>)
Список pgsql-bugs
Vladimir Koković <vladimir.kokovic@a-asoft.com> writes:
> Real question is "Why we need two syntaxes for the same thing ?"

Because the SQL standard says so: UNIQUE-constraint syntax is limited
to simple column names.  We can't just extend that because it would
break the information_schema views, which are only capable of
representing unique/pk constraints on simple columns.

CREATE INDEX, being outside the scope of the spec, doesn't have to worry
about that.
        regards, tom lane


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #5115: ADD UNIQUE table_constraint with expression
Следующее
От: "Turner, Ian"
Дата:
Сообщение: Re: Kerberos authentication, Active Directory, and PostgreSQL