Re: small bug in ADD CONSTRAINT

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: small bug in ADD CONSTRAINT
Дата
Msg-id 1485.1079208356@sss.pgh.pa.us
обсуждение исходный текст
Ответ на small bug in ADD CONSTRAINT  (Joseph Shraibman <jks@selectacast.net>)
Список pgsql-bugs
Joseph Shraibman <jks@selectacast.net> writes:
> This works:
>   ALTER TABLE segment ADD CONSTRAINT  name  unique(textfield, reseller);

> This doesn't:
>   ALTER TABLE segment ADD CONSTRAINT  name  unique(lower(textfield),
> reseller);

I don't think this is a bug.  The unique-constraint syntax is defined by
the SQL spec and it only allows simple column names.  If we extended it
as you suggest, we would break code that expects constraints to apply to
columns (there is some in the backend as well as in clients).

            regards, tom lane

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: small bug in ADD CONSTRAINT
Следующее
От: "PostgreSQL Bugs List"
Дата:
Сообщение: BUG #1101: install-error