CREATE TYPE with two args

Поиск
Список
Период
Сортировка
Искать
От
Ameen - Etemady
Тема
CREATE TYPE with two args
Дата
Msg-id
9008.62.220.101.165.1099827966.squirrel@ce.sharif.edu
Список
Дерево обсуждения
CREATE TYPE with two args "Ameen - Etemady" <eetemadi@ce.sharif.edu>
Re: CREATE TYPE with two args Peter Eisentraut <peter_e@gmx.net>
I want to create a data type that have tow arguments in the defenition,
like the varchar type:
create table mytmp(name varchar(10));

I like to do it like this:
create table mytmp(name myvarchar(10,"en_US"));

how can it be done by "CREATE TYPE"
I want to implement the internal functions (compare, ...).
I faunded the documentation but I can't see any thing that help me to
create a type same as varchar( with argument)

Notice: I don't mean using "CREATE TYPE myvarchar AS( lenght integer,
collate char(10))

Thanks






В списке pgsql-hackers по дате отправления
От: Reini Urban
Дата:
Сообщение: Re: cygwin build failure
От: Peter Eisentraut
Дата:
Сообщение: Re: CREATE TYPE with two args
FAQ