Re: Type modifiers for DOMAIN

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Type modifiers for DOMAIN
Дата
Msg-id 4B44CE72.3070503@agliodbs.com
обсуждение исходный текст
Ответ на Type modifiers for DOMAIN  (Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp>)
Список pgsql-hackers
>     /* Domains never accept typmods, so no typmodin/typmodout needed */
> but can we relax the restriction? This feature would be useful for migration
> from other DBMSes that have non-standard data types.

For migration, wouldn't it be adequate simply to ignore the typemod?  Or
to allow it as part of the type name? e.g.:

create domain "varchar2(10)" AS varcharcheck ( length(value) <= 10 );

I know that wouldn't actually work, but you see what I'm getting at?

--Josh Berkus



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: fastgetattr & isNull
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_migrator issues