I need help creating a composite type with some sort of constraints.

Поиск
Список
Период
Сортировка
От John Oyler
Тема I need help creating a composite type with some sort of constraints.
Дата
Msg-id 3cc9797c0911231248v63a663f0l4a4c187276a45c28@mail.gmail.com
обсуждение исходный текст
Ответы Re: I need help creating a composite type with some sort of constraints.  (Scott Bailey <artacus@comcast.net>)
Список pgsql-general
I can create one or more domains, and use those to create the
composite type from. But each domain can only be constrained in its
own value, I can't constrain element #1's value based on what element
#2's value is.

If I create a domain from a composite, it will complain with a "ERROR:
cdt.instant_message is not a valid base type for a domain" error.

I can't create a trigger for a composite either (technically it's not
a table, but I was hoping it might be treated as one internally).

Is there any way to do this? Are there any plans to change or expand
this functionality in the future?

Thanks,
John O.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Strange performance degradation
Следующее
От: John R Pierce
Дата:
Сообщение: Re: C++ and Postgis