Re: domains, types, constraints

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: domains, types, constraints
Дата
Msg-id 9880.1200587422@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: domains, types, constraints  (Andrew Winkler <the_andrew_winkler@yahoo.com>)
Список pgsql-novice
Andrew Winkler <the_andrew_winkler@yahoo.com> writes:
> postgres=# create type complex as (r numeric, i numeric);
> CREATE TYPE
> postgres=# create domain unitary as complex;
> ERROR:  "complex" is not a valid base type for a domain

> Are composite types not useable for domains?

Nope, sorry.  We currently only support domains over base types.

I don't think anyone's even thought about doing the above, though
it does seem like a potentially useful thing.

            regards, tom lane

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

Предыдущее
От: Andrew Winkler
Дата:
Сообщение: Re: domains, types, constraints
Следующее
От: "Jason Tan Boon Teck"
Дата:
Сообщение: Duplicate primary keys