type aliases

Поиск
Список
Период
Сортировка
От James Harper
Тема type aliases
Дата
Msg-id 6035A0D088A63A46850C3988ED045A4B6F3A5466@BITCOM1.int.sbss.com.au
обсуждение исходный текст
Ответы Re: type aliases
Список pgsql-general
I can create an alias of a type like:

CREATE DOMAIN myvarchar varchar;

But I can't declare a myvarchar with a variable size, eg "mycolumn myvarchar(42)" and from what I've read this is the
wayit DOMAIN is supposed to work so I can't do it that way. 

Is there a way to define myvarchar the way I want to? Can I use CREATE TYPE and just mirror the declaration of the
underlyingtype? 

Thanks

James



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