Re: Deferred partial/expression unique constraints

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Deferred partial/expression unique constraints
Дата
Msg-id 4903.1310570797@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Deferred partial/expression unique constraints  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Ответы Re: Deferred partial/expression unique constraints
Список pgsql-hackers
Dean Rasheed <dean.a.rasheed@gmail.com> writes:
>>> On 7/12/11 9:46 AM, Andres Freund wrote:
>>>> I guess $subject wasn't implemented because plain unique indexes aren't
>>>> represented in pg_constraint and thus do not have a place to store
>>>> information about being deferred?

> I agree that expressing that using a UNIQUE constraint would perhaps
> be more intuitive, but it would be new non-SQL-spec syntax that AFAICS
> wouldn't actually add any new functionality.

Our standard reason for not implementing UNIQUE constraints on
expressions has been that then you would have a thing that claims to be
a UNIQUE constraint but isn't representable in the information_schema
views that are supposed to show UNIQUE constraints.  We avoid this
objection in the current design by shoving all that functionality into
EXCLUDE constraints, which are clearly outside the scope of the spec.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Tweaking the planner's heuristics for small/empty tables
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Need help understanding pg_locks